/* InsurifySmart — shared styles */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visible keyboard focus — emerald */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Atmospheric page intro (interior pages) */
.page-intro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 85% 20%, rgba(5, 150, 105, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(15, 118, 110, 0.18), transparent 50%),
    linear-gradient(160deg, #0F172A 0%, #0B1F1A 55%, #0F172A 100%);
}

.page-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.section-wash {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(5, 150, 105, 0.07), transparent 50%),
    #EEF2F0;
}

.section-ink-wash {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(5, 150, 105, 0.15), transparent 55%),
    #0F172A;
}

/* Glass / interaction surfaces */
.surface-glass {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.9);
}

.surface-ink-glass {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Category filter chips (not pills) */
.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover:not(.bg-ink) {
  border-color: #0F172A;
}

/* Policy result rows */
.policy-card {
  background: #fff;
  border: 1px solid #D1D9E0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.policy-card:hover {
  border-color: #059669;
  background: #F8FAFC;
}

.cat-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0F766E;
  background: rgba(5, 150, 105, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

/* Metric strip */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  border-bottom: 1px solid #D1D9E0;
  background: rgba(255, 255, 255, 0.72);
}

.metric-strip.cols-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .metric-strip.cols-4,
  .metric-strip:not(.cols-3) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .metric-strip.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hero — full-bleed atmosphere */
.hero-shell {
  min-height: min(92vh, 860px);
}

/* Contact page hero — compact on mobile */
.contact-hero {
  min-height: auto;
}

.contact-hero-wash {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.84) 45%,
    rgba(15, 23, 42, 0.97) 100%
  );
}

@media (max-width: 639px) {
  .contact-hero .hero-media img {
    animation: none;
    object-position: 68% 20%;
  }
}

@media (min-width: 640px) {
  .contact-hero {
    min-height: min(58vh, 520px);
  }

  .contact-hero-wash {
    background:
      radial-gradient(ellipse at 80% 70%, rgba(5, 150, 105, 0.25), transparent 55%),
      linear-gradient(
        115deg,
        rgba(15, 23, 42, 0.93) 0%,
        rgba(15, 23, 42, 0.78) 48%,
        rgba(6, 78, 59, 0.4) 100%
      );
  }
}

@media (min-width: 1024px) {
  .contact-hero {
    min-height: min(68vh, 600px);
  }
}

.hero-media img {
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.42s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.58s; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-finder {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hero-finder:focus-within {
  border-color: rgba(16, 185, 129, 0.55);
  background-color: rgba(15, 23, 42, 0.72);
}

/* Coverage tile — image-led, no card chrome */
.cover-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
  min-height: 280px;
}

.cover-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cover-tile:hover img {
  transform: scale(1.05);
}

.cover-tile .cover-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, 0.92) 100%);
}

.cover-tile .cover-tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.35rem 1.4rem;
  color: #fff;
}

/* Range slider accent */
input[type="range"] {
  accent-color: #059669;
}

/* Star rating fill */
.star-fill {
  color: #059669;
}

/* Loading skeleton pulse */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #EDF2F7 37%, #E2E8F0 63%);
  background-size: 400% 100%;
  animation: skeletonWave 1.4s ease infinite;
}

@keyframes skeletonWave {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Custom scrollbar for comparison tables */
.table-scroll::-webkit-scrollbar {
  height: 8px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
  }
  .hero-copy > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}



/* Hide Scrollbar */
html,
body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Offset for fixed header (h-[76px]) — interior pages */
body {
    padding-top: 76px;
}

html {
    scroll-padding-top: 76px;
}

/* Home: full-bleed hero under fixed header */
body.is-home {
    padding-top: 0;
}