/* ShowroomAI additions on top of the Nexsas "AI Gadgets" theme (assets/main.css).
   main.css is a compiled Tailwind build, so it only contains classes the theme used.
   Anything new lives here and uses the theme's tokens. */

/* Brand: logo mark + wordmark */
.sr-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.sr-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.sr-brand-name {
  font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sr-brand-name b {
  font-weight: 700;
  background: linear-gradient(90deg, #8b7bff, #2fd3f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Light theme ---------------------------------------------------------------------------------
   The theme's sections were built dark (black hero, navy panels and footer, "accent" meaning
   near-white text). These classes give them a light look in the ShowroomAI colours instead:
   white and very pale purple/cyan surfaces, navy text, purple→cyan for highlights. */
:root {
  --sr-ink: #12182b;
  --sr-muted: rgba(18, 24, 43, 0.64);
  --sr-line: rgba(18, 24, 43, 0.09);
  --sr-wash: radial-gradient(60% 55% at 12% 0%, rgba(108, 95, 252, 0.13) 0%, rgba(108, 95, 252, 0) 70%),
             radial-gradient(55% 50% at 92% 8%, rgba(13, 202, 240, 0.14) 0%, rgba(13, 202, 240, 0) 70%);
}
.sr-ink { color: var(--sr-ink) !important; }
.sr-muted { color: var(--sr-muted) !important; }

/* Hero: white with a soft purple/cyan wash at the top */
.sr-hero-light {
  background: var(--sr-wash), linear-gradient(180deg, #f7f6ff 0%, #ffffff 70%);
}

/* Home hero, in the style of the theme's "app development" template: an inset rounded card
   with a soft brand gradient and a faint dot grid; copy on the left, showroom image on the right. */
.sr-hero-app-wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 12px;
}
.sr-hero-card {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 28px;
  border: 1px solid var(--sr-line);
  background: linear-gradient(160deg, #ece9ff 0%, #e6efff 48%, #d9f5fb 100%);
}
.sr-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.95) 1.3px, transparent 1.8px);
  background-size: 31px 31px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 30% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 30% 35%, #000 25%, transparent 80%);
  pointer-events: none;
}
.sr-hero-card::after {
  /* A soft glow behind the image side */
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -10%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13, 202, 240, 0.25), rgba(13, 202, 240, 0));
  pointer-events: none;
}
.sr-hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 150px 0 56px;
}
.sr-hero-copy {
  max-width: 560px;
  text-align: center;
}
.sr-hero-intro {
  max-width: 460px;
  margin-inline: auto;
}
.sr-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.sr-hero-trust-icons {
  display: flex;
}
.sr-hero-trust-icons > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6c5ffc, #0dcaf0);
  box-shadow: 0 0 0 3px #fff;
}
.sr-hero-trust-icons > span:first-child {
  margin-left: 0;
}
.sr-hero-trust-icons svg {
  width: 20px;
  height: 20px;
}
.sr-hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sr-hero-grid .sr-hero-shot {
  width: 100%;
  max-width: 760px;
}
@media (min-width: 48rem) {
  .sr-hero-app-wrap { padding-inline: 20px; }
  .sr-hero-buttons { flex-direction: row; justify-content: center; }
}
@media (min-width: 64rem) {
  .sr-hero-card { margin-top: 24px; }
  .sr-hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding: 170px 0 80px;
  }
  .sr-hero-copy {
    flex: 0 1 44%;
    text-align: left;
  }
  .sr-hero-intro { margin-inline: 0; }
  .sr-hero-trust { justify-content: flex-start; }
  .sr-hero-buttons { justify-content: flex-start; }
  .sr-hero-grid .sr-hero-shot {
    flex: 1 1 56%;
    max-width: none;
  }
}

/* Large rounded panels (feature grid, card grid) */
.sr-panel-light {
  background: var(--sr-wash), linear-gradient(180deg, #f6f5ff 0%, #f1fbfe 100%);
  border: 1px solid var(--sr-line);
}

/* Cards on a light panel or page */
.sr-card-light {
  background: #fff;
  border: 1px solid var(--sr-line);
  box-shadow: 0 18px 40px -28px rgba(18, 24, 43, 0.25);
}

/* Call to action band */
.sr-cta-light {
  background: radial-gradient(70% 90% at 0% 0%, rgba(108, 95, 252, 0.22) 0%, rgba(108, 95, 252, 0) 70%),
              radial-gradient(70% 90% at 100% 100%, rgba(13, 202, 240, 0.24) 0%, rgba(13, 202, 240, 0) 70%),
              #f8f7ff;
  border: 1px solid var(--sr-line);
}

/* Header pill: frosted white, navy links */
.sr-header-light {
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 10px 30px -18px rgba(18, 24, 43, 0.35), inset 0 0 0 1px var(--sr-line);
}
.sr-header-light .nav-item-link-white {
  color: var(--sr-ink);
}
.sr-header-light .nav-item-link-white:hover {
  color: var(--color-primary-500);
}

/* Footer */
.sr-footer-light {
  background: #f6f7fa;
  border-top: 1px solid var(--sr-line);
}
.sr-footer-light .footer-link {
  color: var(--sr-muted);
}
.sr-footer-light .footer-link:hover {
  color: var(--sr-ink);
}
.sr-footer-light .footer-link:before {
  background-color: var(--sr-ink);
}
.sr-footer-light .footer-divider {
  background-color: var(--sr-line);
}

/* Contact page: the white envelope icon on a brand-gradient tile */
.sr-mail-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c5ffc, #0dcaf0);
}
.sr-mail-tile img {
  width: 24px;
  height: 24px;
}

/* White button with its thin border kept — the second button on a light background */
.sr-btn-outline {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

/* Current page in the header and mobile menu */
.nav-item-link-white[aria-current='page'] {
  color: var(--color-primary-500);
}
.sidebar a[aria-current='page'] {
  color: var(--color-primary-500);
}

/* Text gradient for highlighted words in headings — brand purple → cyan (reads on light) */
.sr-gradient-text {
  background: linear-gradient(90deg, #6c5ffc 0%, #3b8cf6 55%, #0dcaf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero: generated image with the original photo inset */
.sr-hero-shot {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
}
.sr-hero-shot > .sr-after {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(60, 50, 160, 0.35), 0 0 0 1px var(--sr-line);
}
/* Shown at its own shape (generated images can be 4:3, 3:2, 16:9…), so nothing — like the
   showroom's sign — is cropped off. */
.sr-hero-shot > .sr-after img {
  display: block;
  width: 100%;
  height: auto;
}
.sr-hero-shot > .sr-before {
  position: absolute;
  left: -2%;
  bottom: -9%;
  width: 34%;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -24px rgba(18, 24, 43, 0.45), 0 0 0 1px var(--sr-line);
}
.sr-hero-shot > .sr-before img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}
/* The arrow lives inside the inset: its tail sits over the original photo's upper-right
   corner and its head carries on up into the showroom image. */
.sr-hero-shot .sr-arrow {
  position: absolute;
  z-index: 3;
  right: -20%;
  top: -16%;
  width: 42%;
  color: #6c5ffc;
  filter: drop-shadow(0 4px 8px rgba(18, 24, 43, 0.3));
  pointer-events: none;
}
@media (max-width: 639px) {
  .sr-hero-shot > .sr-before {
    position: relative;
    left: auto;
    bottom: auto;
    width: 62%;
    margin: -22% 0 0 4%;
  }
}

/* Small label on images ("Your photo", "ShowroomAI") */
.sr-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sr-tag-ai {
  color: #fff;
  background: linear-gradient(90deg, #6c5ffc, #0dcaf0);
}
.sr-before .sr-tag {
  top: 16px;
  left: 16px;
}

/* Before / after pair cards in the gallery */
.sr-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
}
@media (min-width: 768px) {
  .sr-pair {
    grid-template-columns: 1fr 1.34fr;
    align-items: stretch;
  }
}
.sr-pair figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-background-4);
}
.sr-pair img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sr-pair figure:hover img {
  transform: scale(1.04);
}
.sr-pair .sr-pair-before img {
  aspect-ratio: 4 / 3;
}
.sr-pair .sr-pair-after img {
  aspect-ratio: 1376 / 768;
}
@media (min-width: 768px) {
  .sr-pair .sr-pair-before img,
  .sr-pair .sr-pair-after img {
    aspect-ratio: auto;
  }
}
.sr-pair-caption {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 6px 8px 4px;
}

/* After-only gallery tiles */
.sr-tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-background-4);
}
.sr-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sr-tile:hover img {
  transform: scale(1.04);
}

/* Feature icons — brand-gradient tiles, white icon */
.sr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6c5ffc, #0dcaf0);
  box-shadow: 0 14px 30px -14px rgba(108, 95, 252, 0.6);
}
.sr-icon svg {
  width: 30px;
  height: 30px;
}
.sr-icon-light {
  color: var(--color-secondary);
  background: var(--color-background-4);
  box-shadow: none;
}

/* Marquee of short promises under the hero */
.sr-promise {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-secondary);
}
.sr-promise::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ffc, #0dcaf0);
}

/* Features page rows */
.sr-feature-shot {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  padding: 10px;
}
.sr-feature-shot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
}

/* Logo placement mock on the features page */
.sr-logo-mock {
  position: absolute;
  right: 6%;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}
.sr-logo-mock img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

/* Contact form */
.sr-field-error {
  display: block;
  padding-left: 18px;
  font-size: var(--text-tagline-3);
  color: #b3261e;
}
.sr-field-error:empty {
  display: none;
}
.input-validation-error {
  border-color: #b3261e !important;
}
/* Honeypot field: off-screen for people, still filled in by bots */
.sr-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Long-form text (privacy policy) */
.sr-prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.sr-prose p,
.sr-prose li {
  margin-bottom: 0.75rem;
}
.sr-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.sr-prose a {
  color: var(--color-primary-500);
  text-decoration: underline;
}

/* Tailwind utilities used by these pages that aren't in the theme's compiled main.css */
.pl-1\.5 { padding-left: calc(var(--spacing) * 1.5); }
.gap-7 { gap: calc(var(--spacing) * 7); }
.gap-14 { gap: calc(var(--spacing) * 14); }
.min-h-screen { min-height: 100vh; }
.pt-40 { padding-top: calc(var(--spacing) * 40); }
.pb-18 { padding-bottom: calc(var(--spacing) * 18); }
.pb-\[60px\] { padding-bottom: 60px; }
.py-24 { padding-block: calc(var(--spacing) * 24); }
.p-10 { padding: calc(var(--spacing) * 10); }
.mb-12 { margin-bottom: calc(var(--spacing) * 12); }
.mb-\[60px\] { margin-bottom: 60px; }
.space-y-20 > :not(:last-child) { margin-bottom: calc(var(--spacing) * 20); }
.space-y-\[60px\] > :not(:last-child) { margin-bottom: 60px; }
.max-w-\[420px\] { max-width: 420px; }
.max-w-\[520px\] { max-width: 520px; }
.max-w-\[560px\] { max-width: 560px; }
.max-w-\[760px\] { max-width: 760px; }
.scroll-mt-24 { scroll-margin-top: calc(var(--spacing) * 24); }
.text-heading-1 { font-size: var(--text-heading-1); line-height: var(--text-heading-1--line-height); }
.bg-\[\#fdecea\] { background-color: #fdecea; }
.text-\[\#9b2c1f\] { color: #9b2c1f; }
@media (min-width: 48rem) {
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:mb-16 { margin-bottom: calc(var(--spacing) * 16); }
  .md\:pb-32 { padding-bottom: calc(var(--spacing) * 32); }
  .md\:p-10 { padding: calc(var(--spacing) * 10); }
  .md\:space-y-28 > :not(:last-child) { margin-bottom: calc(var(--spacing) * 28); }
  .md\:text-heading-1 { font-size: var(--text-heading-1); line-height: var(--text-heading-1--line-height); }
}
@media (min-width: 64rem) {
  .lg\:mb-12 { margin-bottom: calc(var(--spacing) * 12); }
  .lg\:gap-16 { gap: calc(var(--spacing) * 16); }
  .lg\:p-14 { padding: calc(var(--spacing) * 14); }
  .lg\:max-w-\[480px\] { max-width: 480px; }
  .lg\:max-w-\[700px\] { max-width: 700px; }
  .lg\:max-w-\[760px\] { max-width: 760px; }
}
@media (min-width: 80rem) {
  .xl\:col-span-5 { grid-column: span 5 / span 5; }
  .xl\:col-span-7 { grid-column: span 7 / span 7; }
  .xl\:pt-36 { padding-top: calc(var(--spacing) * 36); }
  .xl\:pb-20 { padding-bottom: calc(var(--spacing) * 20); }
  .xl\:pb-\[120px\] { padding-bottom: 120px; }
}
@media (min-width: 96rem) {
  .\32xl\:\!max-w-\[1440px\] { max-width: 1440px !important; }
}

/* Absolutely positioned backgrounds inside space-y-* containers would otherwise pick up a margin */
.sr-fill { margin: 0 !important; }

/* Formatted text from the content editor (feature rows, text and image) */
.sr-rich > * + * {
  margin-top: 1rem;
}
.sr-rich strong {
  color: var(--color-secondary);
  font-weight: 500;
}
.sr-rich a {
  text-decoration: underline;
}
.sr-rich h3 {
  font-size: var(--text-heading-6);
  line-height: 1.3;
  color: var(--color-secondary);
}
.sr-rich ul {
  display: grid;
  gap: 0.625rem;
}
.sr-rich ul > li {
  position: relative;
  padding-left: 30px;
}
.sr-rich ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary) url('../images/icons/checkmark-white.svg') center / 12px no-repeat;
}
.sr-rich ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

/* Keep editors' line breaks in multi-line text boxes */
.sr-lines {
  white-space: pre-line;
}

/* Keep editors' line breaks in large headings (e.g. the call to action) on wide screens */
@media (min-width: 64rem) {
  .sr-lines-lg {
    white-space: pre-line;
  }
}

/* Shown to signed-in editors previewing an unpublished page */
.sr-preview-flag {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #3d2c00;
  background: #ffd75e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Cookie consent bar (Views/Shared/_CookieConsent.cshtml): a dark "night" card that slides up
   from the bottom, the same look as the Gedney Bulb site's banner in the Breeze palette. */
.bz-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--bz-night-2);
  box-shadow: 0 20px 50px rgba(19, 14, 44, 0.35);
  animation: bz-cookie-in 0.4s ease-out;
}
.bz-cookie[hidden] { display: none; }
.bz-cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bz-cookie-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bz-cookie-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--bz-grad);
  color: #fff;
}
.bz-cookie-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.bz-cookie-text a { color: #fff; }
.bz-cookie-actions {
  display: flex;
  gap: 10px;
}
.bz-cookie-btn {
  flex: 1 1 0;
  padding: 10px 18px;
  font-size: 0.9375rem;
  white-space: nowrap;
  cursor: pointer;
}
@media (min-width: 48rem) {
  .bz-cookie-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .bz-cookie-message { flex: 1; align-items: center; }
  .bz-cookie-btn { flex: 0 0 auto; }
}
@keyframes bz-cookie-in {
  from { transform: translateY(calc(100% + 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .bz-cookie { animation: none; }
}

/* Falling snow (_Layout + showroom.js): over the page but under the cookie bar, never in the way of
   clicks. The soft shadow keeps white flakes visible on the white sections. */
.bz-snow {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}
.bz-snowflake {
  position: absolute;
  top: 0;
  height: auto;
  filter: drop-shadow(0 0 2px rgba(53, 63, 79, 0.35));
  animation: bz-snow-fall var(--fall) linear infinite, bz-snow-sway var(--sway) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bz-snow-fall {
  from { transform: translateY(-60px) rotate(0deg); }
  to { transform: translateY(calc(100vh + 60px)) rotate(360deg); }
}
@keyframes bz-snow-sway {
  from { translate: calc(var(--drift) * -1) 0; }
  to { translate: var(--drift) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bz-snow { display: none; }
}
