:root {
  --peepal-red: #d71920;
  --peepal-red-deep: #a90f16;
  --peepal-yellow: #ffd600;
  --peepal-yellow-soft: #fff6bd;
  --peepal-ink: #241b1c;
  --peepal-muted: #6f6264;
  --peepal-line: #eadfe0;
  --peepal-white: #fff;
  --peepal-shadow: 0 24px 70px rgba(91, 24, 28, .12);
  --peepal-shadow-small: 0 12px 32px rgba(91, 24, 28, .1);
}

html {
  scroll-padding-top: 96px;
}

body.premium-theme,
.premium-theme #root,
.premium-theme #root > div {
  background: var(--peepal-white) !important;
  color: var(--peepal-ink) !important;
}

.premium-theme body,
.premium-theme button,
.premium-theme input,
.premium-theme select,
.premium-theme textarea {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.premium-theme ::selection {
  background: var(--peepal-yellow);
  color: var(--peepal-ink);
}

.premium-theme section {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--peepal-line) !important;
  background-color: var(--peepal-white) !important;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 214, 0, .13), transparent 24rem),
    radial-gradient(circle at 93% 88%, rgba(215, 25, 32, .06), transparent 28rem) !important;
}

.premium-theme section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image: linear-gradient(rgba(215, 25, 32, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 25, 32, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

.premium-theme section > div[class*="absolute"] {
  opacity: .36;
}

.premium-theme #home {
  min-height: min(780px, calc(100vh - 84px));
  display: flex;
  align-items: center;
  background:
    linear-gradient(110deg, #fff 0%, #fff 56%, #fff9d7 56%, #ffd600 100%) !important;
  border-bottom: 0 !important;
}

.premium-theme #home::after {
  content: "PEEPAL / ADS";
  position: absolute;
  right: -1vw;
  bottom: -2.2vw;
  z-index: -1;
  color: rgba(215, 25, 32, .055);
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
  white-space: nowrap;
}

.premium-theme #home h1,
.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) h2 {
  color: var(--peepal-red-deep) !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}

.premium-theme #home h1 span,
.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) h2 span {
  color: var(--peepal-red) !important;
  text-decoration-color: var(--peepal-yellow) !important;
  text-underline-offset: .14em;
}

.premium-theme #home p,
.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) > div > div > p,
.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) .text-white {
  color: var(--peepal-ink) !important;
}

.premium-theme #main-header,
.premium-theme .crit-header {
  top: 0;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid rgba(215, 25, 32, .14) !important;
  box-shadow: 0 12px 36px rgba(91, 24, 28, .08);
  backdrop-filter: blur(18px) saturate(1.3);
}

.premium-theme #main-header nav a,
.premium-theme .crit-desktop-nav a {
  position: relative;
  color: var(--peepal-ink) !important;
  border-radius: 999px;
}

.premium-theme #main-header a[aria-label="Peepal Ads Home"] > div:last-child > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"] span.font-heading,
.premium-theme #main-header > div > a[href="#home"] > div:nth-of-type(2) > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"]:link > div:last-child > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"]:visited > div:last-child > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"]:hover > div:last-child > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"]:focus > div:last-child > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"]:focus-visible > div:last-child > span:first-child,
.premium-theme #main-header a[aria-label="Peepal Ads Home"]:active > div:last-child > span:first-child,
.premium-theme .crit-header > div > a > div:last-child > span:first-child,
.premium-theme .crit-header > div > a:hover > div:last-child > span:first-child,
.premium-theme .crit-header > div > a:focus > div:last-child > span:first-child,
.premium-theme .crit-header > div > a:active > div:last-child > span:first-child {
  color: #E11D2E !important;
  -webkit-text-fill-color: #E11D2E !important;
  opacity: 1 !important;
}

.premium-theme #main-header nav a::after,
.premium-theme .crit-desktop-nav a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 3px;
  height: 3px;
  border-radius: 99px;
  background: var(--peepal-red);
  transform: scaleX(0);
  transition: transform .24s ease;
}

.premium-theme #main-header nav a:hover::after,
.premium-theme #main-header nav a[aria-current="true"]::after,
.premium-theme .crit-desktop-nav a:hover::after {
  transform: scaleX(1);
}

.premium-theme .crit-top-bar,
.premium-theme #root > div > div:first-child {
  background: var(--peepal-red-deep) !important;
  border-bottom-color: var(--peepal-yellow) !important;
  color: #fff !important;
}

.premium-theme .crit-marquee,
.premium-theme #home + div {
  background: var(--peepal-yellow) !important;
  border: 0 !important;
  box-shadow: inset 0 -1px rgba(36, 27, 28, .12);
}

.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) {
  padding-top: clamp(4.75rem, 8vw, 7rem) !important;
  padding-bottom: clamp(4.75rem, 8vw, 7rem) !important;
}

.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) > div[class*="max-w-7xl"] {
  max-width: 1240px;
}

.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) [class*="bg-[#B31419]"],
.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) article,
.premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) [class*="shadow-2xl"] {
  border-color: var(--peepal-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--peepal-shadow-small) !important;
}

.premium-theme #about [class*="bg-[#B31419]"],
.premium-theme #projects > div > div > div[class*="grid"] > div,
.premium-theme #blogs article,
.premium-theme #contact [class*="lg:col-span-5"] > div,
.premium-theme #contact form,
.premium-theme #clients [class*="shadow-2xl"] {
  background: rgba(255, 255, 255, .96) !important;
  color: var(--peepal-ink) !important;
}

.premium-theme #services [class*="grid"] > button,
.premium-theme #gallery [class*="grid"] > div,
.premium-theme #clients [class*="grid"] > div,
.premium-theme #projects > div > div > div[class*="grid"] > div,
.premium-theme #blogs article {
  border: 1px solid var(--peepal-line) !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: var(--peepal-shadow-small) !important;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease !important;
}

.premium-theme #services [class*="grid"] > button:hover,
.premium-theme #gallery [class*="grid"] > div:hover,
.premium-theme #clients [class*="grid"] > div:hover,
.premium-theme #projects > div > div > div[class*="grid"] > div:hover,
.premium-theme #blogs article:hover {
  transform: translateY(-7px) !important;
  border-color: rgba(215, 25, 32, .35) !important;
  box-shadow: var(--peepal-shadow) !important;
}

.premium-theme #projects > div > div > div[class*="grid"] > div,
.premium-theme #blogs article {
  cursor: pointer;
}

.premium-theme #projects h3,
.premium-theme #projects p,
.premium-theme #projects span,
.premium-theme #blogs h3,
.premium-theme #blogs p,
.premium-theme #blogs span,
.premium-theme #about p,
.premium-theme #about span,
.premium-theme #contact p,
.premium-theme #contact h3,
.premium-theme #contact label {
  color: var(--peepal-ink) !important;
}

.premium-theme :where(#projects, #blogs) [class*="aspect-"] + div {
  background: #fff;
}

.premium-theme :where(#projects, #blogs) [class*="aspect-"] span,
.premium-theme :where(#gallery, #clients) [class*="absolute"] span,
.premium-theme #contact [class*="bg-[#E31E24]"] span,
.premium-theme #contact [class*="bg-[#E31E24]"] div {
  color: inherit !important;
}

.premium-theme a[class*="bg-[#E31E24]"],
.premium-theme button[class*="bg-[#E31E24]"],
.premium-theme span[class*="bg-[#E31E24]"],
.premium-theme [role="button"][class*="bg-[#E31E24]"] {
  background: var(--peepal-red) !important;
  color: #fff !important;
  border-color: var(--peepal-red) !important;
}

.premium-theme a[class*="bg-[#FFD600]"],
.premium-theme button[class*="bg-[#FFD600]"],
.premium-theme span[class*="bg-[#FFD600]"] {
  background: var(--peepal-yellow) !important;
  color: var(--peepal-ink) !important;
}

.premium-theme :where(a, button) {
  outline-offset: 4px;
}

.premium-theme :where(a, button):focus-visible,
.premium-theme [tabindex="0"]:focus-visible {
  outline: 3px solid var(--peepal-yellow);
  box-shadow: 0 0 0 6px rgba(215, 25, 32, .2);
}

.premium-theme :where(a, button)[class*="rounded-sm"] {
  border-radius: 999px !important;
}

.premium-theme input,
.premium-theme select,
.premium-theme textarea {
  border-radius: 12px !important;
  border-color: #d9cccd !important;
  box-shadow: none !important;
}

.premium-theme input:focus,
.premium-theme select:focus,
.premium-theme textarea:focus {
  border-color: var(--peepal-red) !important;
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .1) !important;
}

.premium-theme #contact [class*="bg-[#FFD600]"] {
  background: var(--peepal-yellow-soft) !important;
}

.premium-theme #contact [class*="bg-[#E31E24]"] {
  background: var(--peepal-red) !important;
  color: #fff !important;
}

.premium-theme #contact [class*="bg-[#E31E24]"] a {
  background: var(--peepal-yellow) !important;
  color: var(--peepal-red-deep) !important;
}

.premium-theme .peepal-map-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  padding: .5rem .9rem !important;
  border: 2px solid #fff;
  border-radius: 999px !important;
  background: var(--peepal-yellow) !important;
  color: var(--peepal-ink) !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.premium-theme .peepal-map-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 27, 28, .22);
}

.premium-theme .peepal-address-link {
  border-radius: 14px;
  transition: background .2s ease, transform .2s ease;
}

.premium-theme .peepal-address-link:hover {
  background: var(--peepal-yellow-soft);
  transform: translateX(4px);
}

.premium-theme .peepal-project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(65, 11, 15, .72);
  backdrop-filter: blur(14px);
  animation: peepal-fade .22s ease both;
}

.premium-theme .peepal-project-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(36, 8, 10, .42);
  animation: peepal-rise .32s cubic-bezier(.2, .8, .2, 1) both;
}

.premium-theme .peepal-project-modal__dialog > div {
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.premium-theme .peepal-project-modal__close {
  position: sticky;
  top: 14px;
  z-index: 4;
  float: right;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  border: 0;
  border-radius: 50%;
  background: var(--peepal-red);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(91, 24, 28, .3);
}

.premium-theme .peepal-project-modal__eyebrow {
  padding: 1rem 1.5rem;
  background: var(--peepal-yellow);
  color: var(--peepal-red-deep);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.premium-theme .peepal-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10000;
  transform: translateX(-50%);
  width: min(92vw, 520px);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--peepal-ink);
  color: #fff;
  box-shadow: var(--peepal-shadow);
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
}

.premium-theme .peepal-toast[data-type="error"] {
  background: var(--peepal-red-deep);
}

@keyframes peepal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes peepal-rise {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1023px) {
  .premium-theme #main-header,
  .premium-theme .crit-header {
    padding: 12px 16px !important;
  }

  .premium-theme #home {
    min-height: auto;
    background: linear-gradient(155deg, #fff 0%, #fff 68%, #fff5ac 100%) !important;
  }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }

  .premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .premium-theme :where(#about, #services, #projects, #gallery, #clients, #blogs, #contact) h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .premium-theme .peepal-project-modal {
    padding: .7rem;
  }

  .premium-theme .peepal-project-modal__dialog {
    max-height: 94vh;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-theme *,
  .premium-theme *::before,
  .premium-theme *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
