/* ==========================================================================
   Velmure Tech — placeholder brand palette
   Swap the values below once real brand colors are provided.
   Every color used across the site references one of these variables, so a
   rebrand is a one-file edit.
   ========================================================================== */
:root {
  --color-primary: #475569;      /* slate blue */
  --color-primary-dark: #334155; /* deeper slate, nav/headers */
  --color-secondary: #06b6d4;    /* cyan, links/highlights/hover */
  --color-accent: #475569;       /* slate blue, primary CTAs only (alias of --color-primary) */
  --color-bg: #f8fafc;           /* near-white background */
  --color-ink: #0f172a;          /* dark text / footer */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-ink);
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Scroll reveal ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
.reveal-delay-4.is-visible { transition-delay: 0.4s; }

.fade-in-load {
  animation: fadeInLoad 0.8s ease both;
}
@keyframes fadeInLoad {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Buttons -------------------------------------------------------------
   Shared classes so every CTA across five pages stays visually consistent
   without repeating long Tailwind utility strings.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(71, 85, 105, 0.55);
}
.btn-accent:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 26px -8px rgba(71, 85, 105, 0.65);
}

.btn-primary {
  background-color: var(--color-primary-dark);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid #cbd5e1;
}
.btn-outline:hover {
  border-color: var(--color-primary-dark);
  background-color: #fff;
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ---- Cards ---------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(71, 85, 105, 0.35);
  border-color: #cbd5e1;
}

.tier-popular {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--color-accent), var(--color-secondary)) border-box;
  box-shadow: 0 30px 60px -24px rgba(71, 85, 105, 0.45), 0 0 0 1px rgba(71, 85, 105, 0.06);
}
/* .card:hover sets border-color with higher specificity (class+pseudo) than
   .tier-popular alone, which would flatten the gradient border on hover. */
.card.tier-popular:hover {
  border-color: transparent;
}

/* ---- Glassmorphism ----------------------------------------------------------
   Frosted-glass panels for use over photos or colored/dark sections.
   .glass = translucent on dark backgrounds, .glass-light = translucent on
   light backgrounds. Both need a backdrop-filter-capable browser; they
   degrade gracefully to a plain tinted panel otherwise.
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 8px 32px -8px rgba(0, 0, 0, 0.35);
}
.glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.glass-light {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6), 0 8px 32px -12px rgba(15, 23, 42, 0.15);
}

/* ---- Glow accents ------------------------------------------------------------ */
.glow-accent {
  box-shadow: 0 0 0 1px rgba(71, 85, 105, 0.2), 0 20px 45px -14px rgba(71, 85, 105, 0.5);
}
.glow-secondary {
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2), 0 20px 45px -14px rgba(6, 182, 212, 0.4);
}

/* ---- Mesh gradient background --------------------------------------------------
   Soft, blurred color blobs for premium depth on otherwise flat light
   sections. Apply to a `relative` section; content stacks above via z-index.
   -------------------------------------------------------------------------- */
.bg-mesh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bg-mesh::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(40% 40% at 12% 15%, rgba(6, 182, 212, 0.13), transparent 70%),
    radial-gradient(45% 45% at 88% 10%, rgba(71, 85, 105, 0.11), transparent 70%),
    radial-gradient(55% 55% at 50% 105%, rgba(71, 85, 105, 0.12), transparent 70%);
  filter: blur(50px);
}

/* ---- FAQ accordion (native <details>/<summary>, no JS needed) -------------- */
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* ---- Header shadow on scroll ---------------------------------------------- */
#site-header.is-scrolled {
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.15);
}

/* ---- WhatsApp floating button ---------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
}
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25d366;
  opacity: 0.55;
  animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float .wa-glow {
  box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.12), 0 16px 34px -10px rgba(16, 120, 63, 0.55);
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---- Hero image slideshow --------------------------------------------------
   Four images crossfade in sequence (1→2→3→4→loop) with a slow Ken-Burns
   zoom while each is on screen. Driven by js/main.js toggling .is-active;
   the CSS just describes the transition.
   -------------------------------------------------------------------------- */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.3s ease, transform 6.5s ease-out;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.07);
  z-index: 1;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.hero-dot.is-active {
  width: 22px;
  background: #fff;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ---- Misc ------------------------------------------------------------------ */
.bg-noise-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 22px 22px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-in-load { animation: none; }
  .wa-pulse { display: none; }
  .btn:hover, .card:hover { transform: none; }
  .hero-slide { transition: opacity 0.3s ease; }
  .hero-slide.is-active { transform: scale(1); }
}
