/* Additions for the static build (not part of the original Tailwind output) */

/* ---- Color scheme: deep navy + professional blue ----
   Overrides the theme variables in styles.css. The accent keeps its original
   variable name (--mint) so every existing class picks up the new blue. */
:root {
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --card: 222 40% 10%;
  --card-foreground: 210 40% 98%;
  --popover: 222 40% 10%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222 47% 6%;
  --secondary: 220 32% 15%;
  --secondary-foreground: 210 30% 92%;
  --muted: 220 32% 15%;
  --muted-foreground: 215 20% 68%;
  --accent: 210 40% 98%;
  --accent-foreground: 222 47% 6%;
  --border: 220 26% 20%;
  --input: 220 26% 20%;
  --ring: 213 94% 62%;
  --hero-overlay: 222 55% 4%;
  --section-alt: 222 42% 8%;
  --accent-soft: 220 32% 15%;

  --mint: 213 94% 62%;            /* accent blue (#3d8bf7) */
  --mint-foreground: 0 0% 100%;   /* white text on blue buttons */

  --gradient-primary: linear-gradient(135deg, hsl(217 91% 55%) 0%, hsl(199 89% 52%) 100%);
  --gradient-text: linear-gradient(120deg, hsl(210 40% 98%) 0%, hsl(205 95% 72%) 45%, hsl(210 40% 98%) 100%);
  --gradient-aurora: linear-gradient(135deg, hsl(213 94% 62% / 0.16), hsl(0 0% 100% / 0.04), hsl(199 89% 52% / 0.12));
  --gradient-card: linear-gradient(160deg, hsl(222 38% 12%) 0%, hsl(222 45% 7%) 100%);
  --shadow-glow: 0 0 40px hsl(213 94% 62% / 0.22), 0 0 90px hsl(213 94% 62% / 0.08);
  --shadow-glow-sm: 0 0 18px hsl(213 94% 62% / 0.28);
}

nav .md\:hidden.max-h-0 { transition: max-height .3s ease; }

select option { background: hsl(var(--card)); color: hsl(var(--foreground)); }
select:invalid { color: hsl(var(--muted-foreground)); }

/* ---- Hero background video (Home) ----
   Video sits under the overlay; the overlay is darker on the left where the
   headline is, lighter on the right so the code shows through. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
  /* Tint the clip to the site's blue (grayscale -> sepia -> rotate to blue) */
  filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(2.2) brightness(.9);
}
.hero-video.is-playing { opacity: .6; }
#home .hero-overlay {
  background:
    linear-gradient(90deg, hsl(var(--hero-overlay) / .94) 0%, hsl(var(--hero-overlay) / .78) 45%, hsl(var(--hero-overlay) / .45) 100%),
    linear-gradient(180deg, transparent 60%, hsl(var(--background)) 100%);
}

/* First section on inner pages clears the fixed nav */
.page-first { padding-top: 10rem; }

/* Portfolio: space + divider between projects */
.project-block-next {
  margin-top: 5rem; padding-top: 5rem;
  border-top: 1px solid hsl(var(--border) / .6);
}

/* Pricing plans */
.plans-grid {
  display: grid; gap: 1.5rem; max-width: 64rem; margin: 0 auto;
  grid-template-columns: 1fr; align-items: stretch;
}
@media (min-width: 900px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 2.25rem 2rem 2rem; }
.plan-popular { box-shadow: var(--shadow-glow); }
@media (min-width: 900px) { .plan-popular { transform-origin: center; margin-top: -0.75rem; margin-bottom: -0.75rem; } }
.plan-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: .3rem .9rem; border-radius: 9999px; white-space: nowrap;
  background: var(--gradient-primary); color: hsl(var(--mint-foreground));
  font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.plan-price { font-size: 3.5rem; line-height: 1; margin: .75rem 0 .75rem; color: hsl(var(--foreground)); }
.plan-unit {
  font-family: 'Barlow', system-ui, sans-serif; font-size: .8rem; font-weight: 500;
  color: hsl(var(--muted-foreground)); margin-left: .4rem; letter-spacing: .05em;
}

/* Website Packages / Monthly Plans toggle */
.plan-toggle {
  display: flex; width: fit-content; margin: 0 auto 3.5rem; padding: .3rem;
  border: 1px solid hsl(var(--border)); border-radius: 9999px; background: hsl(var(--card) / .8);
}
.plan-toggle button {
  padding: .6rem 1.4rem; border-radius: 9999px; font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: hsl(var(--muted-foreground));
  transition: color .2s, background .2s;
}
.plan-toggle button:hover { color: hsl(var(--foreground)); }
.plan-toggle button[aria-selected="true"] { background: var(--gradient-primary); color: hsl(var(--mint-foreground)); box-shadow: var(--shadow-glow-sm); }
.plans-grid[hidden] { display: none; }
@media (max-width: 420px) { .plan-toggle button { padding: .55rem .9rem; letter-spacing: .1em; } }

/* Add-ons */
.addons-grid {
  display: grid; gap: 1.25rem; max-width: 72rem; margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.addon-card { display: flex; flex-direction: column; padding: 1.75rem; }
.addon-icon {
  width: 2.75rem; height: 2.75rem; border-radius: .75rem; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--mint) / .22), hsl(var(--mint) / .04));
}
.addon-name { font-size: 1.35rem; line-height: 1.1; }
.addon-price { color: hsl(var(--mint)); font-weight: 700; font-size: .85rem; margin: .35rem 0 .75rem; }
.addon-link {
  margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: hsl(var(--foreground) / .8);
  transition: color .2s;
}
.addon-card:hover .addon-link { color: hsl(var(--mint)); }
.plan-tagline { min-height: 2.75rem; margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin: 0 0 2rem; padding: 1.5rem 0 0; border-top: 1px solid hsl(var(--border)); display: grid; gap: .8rem; align-content: start; flex: 1; }
.plan-features li { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: hsl(var(--foreground) / .85); }
.plan-check { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: .15rem; color: hsl(var(--mint)); }
.plan-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; border-radius: 9999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; transition: transform .2s, border-color .2s, color .2s;
}
.plan-cta:hover { transform: scale(1.02); }
.plan-cta-solid { color: hsl(var(--mint-foreground)); }
.plan-cta-outline { border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.plan-cta-outline:hover { border-color: hsl(var(--mint)); color: hsl(var(--mint)); }

/* FAQ accordion */
.faq-item { display: block; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover span { color: hsl(var(--mint)); }
.faq-item summary span { transition: color .2s; }
.faq-chevron { flex-shrink: 0; transition: transform .3s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; }

/* Missing images */
img.missing { visibility: hidden; }
.img-placeholder {
  position: relative;
  background: var(--gradient-card);
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.75rem; letter-spacing: .05em;
  color: hsl(var(--mint) / .6);
}

/* Portfolio lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 2rem; background: hsl(0 0% 0% / .9);
  backdrop-filter: blur(6px); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: .5rem; box-shadow: var(--shadow-glow); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  font-size: 2.5rem; line-height: 1; color: hsl(var(--foreground));
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
