/* Shahi Connection — outdoor Bihar advertising */

:root {
  --navy: #001b3a;
  --navy-deep: #0a1a2f;
  --navy-soft: #122848;
  --gold: #b3904f;
  --gold-hot: #c9a86a;
  --cream: #f7f4ef;
  --cream-soft: #ebe6dc;
  --ink: var(--navy-deep);
  --paper: #f4f1ea;
  --paper-muted: #c5c0b6;
  --muted-on-light: #4a5568;
  --line: rgba(244, 241, 234, 0.16);
  --line-dark: rgba(0, 27, 58, 0.12);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-hot);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--space);
  background: linear-gradient(to bottom, rgba(0, 27, 58, 0.92), transparent);
  transition: background 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 27, 58, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  height: 2.65rem;
  width: auto;
  object-fit: contain;
}

.logo--footer img {
  height: 4.5rem;
}

.logo:hover {
  color: inherit;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.site-nav a:hover {
  color: var(--gold-hot);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s,
    color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--gold-hot);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 241, 234, 0.55);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

/* Hero — animated media (slideshow) */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) var(--space) clamp(4.5rem, 10vw, 6rem);
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease);
}

.hero__slides img.is-active {
  opacity: 1;
  animation: kenburns 9s var(--ease) forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 27, 58, 0.72) 0%,
      rgba(0, 27, 58, 0.55) 40%,
      rgba(2, 11, 24, 0.82) 100%
    ),
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(179, 144, 79, 0.12), transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hot);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

.hero__icon {
  width: clamp(8.5rem, 26vw, 12.5rem);
  height: clamp(8.5rem, 26vw, 12.5rem);
  margin: 0 0 1.35rem;
  padding: 0;
  object-fit: cover;
  border-radius: 50%;
  background: #f7f4ef;
  box-shadow:
    0 0 0 2px rgba(179, 144, 79, 0.45),
    0 0 0 8px rgba(179, 144, 79, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__headline {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  color: var(--paper);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero__support {
  font-size: 1.05rem;
  color: var(--paper-muted);
  margin: 0 auto 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-muted);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 1.6s var(--ease) infinite;
}

.hero__scroll:hover {
  color: var(--gold-hot);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0.35);
    opacity: 0.35;
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }
  100% {
    transform: scaleY(0.35);
    opacity: 0.35;
    transform-origin: bottom;
  }
}

/* Sections */

.section {
  padding: clamp(4rem, 10vw, 7rem) var(--space);
}

.section__intro {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__intro p,
.coverage__copy p,
.why > p:not(.why__tagline),
.contact__info > p {
  color: var(--muted-on-light);
  font-size: 1.1rem;
}

.section--services .section__intro p,
.section--work .section__intro p {
  color: var(--muted-on-light);
}

/* Services — light */

.section--services {
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(179, 144, 79, 0.12), transparent),
    var(--cream);
  color: var(--navy);
}

.section--services h2 {
  color: var(--navy);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.service {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .service {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.service h3 {
  color: var(--gold);
}

.service p {
  margin: 0;
  color: var(--muted-on-light);
}

/* Work gallery */

.section--work {
  background: var(--cream-soft);
  color: var(--navy);
}

.section--work h2 {
  color: var(--navy);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(5) {
    grid-column: span 2;
  }
}

.gallery__item {
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* Coverage */

.section--coverage {
  position: relative;
  background:
    linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 55%, var(--navy-deep) 100%);
  overflow: hidden;
  color: var(--paper);
}

.section--coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("pic/497347009_9566979996762964_8610432396581676230_n.jpg")
      center / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.coverage {
  position: relative;
  display: grid;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 800px) {
  .coverage {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 4rem;
  }
}

.section--coverage .coverage__copy p {
  color: var(--paper-muted);
}

.coverage__places {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.coverage__places li {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.coverage__places li:first-child {
  color: var(--gold);
}

/* Why */

.section--why {
  background:
    linear-gradient(90deg, rgba(179, 144, 79, 0.14), transparent 55%),
    var(--cream);
  border-block: 1px solid var(--line-dark);
  color: var(--navy);
}

.why {
  max-width: 40rem;
}

.why h2 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.why__tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Contact */

.section--contact {
  background: var(--navy-soft);
  color: var(--paper);
}

.section--contact h2,
.section--contact h3 {
  color: var(--paper);
}

.section--contact .contact__info > p {
  color: var(--paper-muted);
}

.contact {
  display: grid;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 800px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact__details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__details li {
  display: grid;
  gap: 0.15rem;
}

.contact__details span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.contact__details a {
  font-weight: 500;
  text-decoration: none;
  color: var(--paper);
}

.contact__details a:hover {
  color: var(--gold-hot);
}

.inquiry {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: rgba(0, 27, 58, 0.45);
  border: 1px solid var(--line);
}

.inquiry h3 {
  margin: 0;
}

.inquiry__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--paper-muted);
}

.inquiry label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--paper-muted);
}

.inquiry input,
.inquiry textarea {
  font: inherit;
  color: var(--paper);
  background: var(--navy-deep);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  resize: vertical;
}

.inquiry input:focus,
.inquiry textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.inquiry .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Footer */

.site-footer {
  padding: 2.5rem var(--space);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-deep);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer nav a {
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer__copy {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: var(--paper-muted);
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service.reveal:nth-child(2),
.gallery__item.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.service.reveal:nth-child(3),
.gallery__item.reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.service.reveal:nth-child(4),
.gallery__item.reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.service.reveal:nth-child(5),
.gallery__item.reveal:nth-child(5) {
  transition-delay: 0.24s;
}
.gallery__item.reveal:nth-child(6) {
  transition-delay: 0.08s;
}

/* Mobile nav */

@media (max-width: 719px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(0, 27, 58, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .hero {
    align-items: center;
    padding-top: calc(var(--header-h) + 3rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__eyebrow,
  .hero__icon,
  .hero__headline,
  .hero__support,
  .hero__actions,
  .hero__scroll::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__slides img,
  .hero__slides img.is-active {
    animation: none;
    transform: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .gallery__item:hover img {
    transform: none;
  }
}
