/* ==========================================================================
   AppX Solutions — brand kit for standalone (non-WordPress) prototypes
   Extracted from the appx-blueprint WP theme so a plain HTML/CSS/JS tool
   (e.g. a lead-magnet calculator hosted on Netlify) visually matches the
   main site: same palette, fonts, header, and footer treatment.
   ========================================================================== */

@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/wix-madefor-display/wix-madefor-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/wix-madefor-display/wix-madefor-display-500.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/wix-madefor-display/wix-madefor-display-700.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/wix-madefor-text/wix-madefor-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Wix Madefor Text";
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/wix-madefor-text/wix-madefor-text-500.woff2") format("woff2");
}

:root {
  /* ---- Foundation ---- */
  --color-bg: #060c1a;
  --color-surface: #0b1325;
  --color-elevated: #1c1c3a;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-active: rgba(255, 255, 255, 0.1);

  /* ---- Text ---- */
  --color-text-primary: #f0f0f5;
  --color-text-secondary: #8888aa;
  --color-text-muted: #55556a;
  --color-footer-text: #a0a8b0;

  /* ---- Accents ---- */
  --color-teal: #00c8d0; /* secondary accent, used sparingly */
  --color-teal-dark: #009aa0;
  --color-electric-blue: #3388ff; /* primary accent — buttons, links, highlights */
  --color-action-dark: #1d4ed8; /* button hover */

  /* ---- Type ---- */
  --font-family--display: "Wix Madefor Display", sans-serif;
  --font-family--heading: "Wix Madefor Display", sans-serif;
  --font-family--body: "Wix Madefor Text", sans-serif;

  --header-height: 4rem;
  --content-max-width: 1200px; /* stand-in for the site's wide-size token */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family--body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family--heading);
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.02rem;
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.2;
}

p {
  line-height: 1.5;
}

/* ----------------------------------------------------------- */
/* Links — same offset-underline hover as the main site         */
/* ----------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-electric-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-electric-blue);
  text-underline-offset: 5px;
}

/* ----------------------------------------------------------- */
/* Header — sticky, transparent until scrolled, blurs on scroll */
/* Toggle .is-scrolled via JS: header.classList.toggle('is-scrolled',
   window.scrollY > 10) — see header-footer.js below.            */
/* ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(12, 15, 42, 0.5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.site-header__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-family--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.site-header__logo img {
  height: 2rem;
  width: auto;
}

/* ----------------------------------------------------------- */
/* Buttons / CTA — electric-blue pill button                    */
/* ----------------------------------------------------------- */

.btn {
  display: inline-block;
  border-radius: 100px;
  padding: 1rem 2.5rem;
  font-family: var(--font-family--body);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn.cta {
  background-color: var(--color-electric-blue);
  color: #fff;
}

.btn.cta:hover {
  background-color: var(--color-action-dark);
  color: #fff;
  text-decoration: none;
}

/* ----------------------------------------------------------- */
/* Cards — reusable panel for calculator inputs/results          */
/* ----------------------------------------------------------- */

.card {
  border-radius: 24px;
  background-color: var(--color-surface);
  box-shadow: 0px 1px 20px rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.card:hover,
.card:active {
  border-color: rgba(51, 136, 255, 0.7);
}

.card h4 {
  color: var(--color-electric-blue);
}

/* ----------------------------------------------------------- */
/* Footer — logo / gradient divider / copyright row              */
/* ----------------------------------------------------------- */

.site-footer {
  color: var(--color-footer-text);
  padding: 2rem 1.5rem;
}

.site-footer a {
  color: var(--color-footer-text);
}

.site-footer a:hover {
  color: var(--color-electric-blue);
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.35rem;
}

.site-footer__logo {
  order: 1;
}

.site-footer__gradient-line {
  display: none;
  height: 2px;
  flex: 1;
  width: 100%;
  background-image: linear-gradient(90deg, var(--color-electric-blue), #050909);
  order: 2;
}

.site-footer__copyright {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 0.85rem;
}

@media screen and (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
  }

  .site-footer__logo,
  .site-footer__gradient-line,
  .site-footer__copyright {
    order: unset;
  }

  .site-footer__gradient-line {
    display: block;
  }

  .site-footer__copyright {
    font-size: unset;
  }
}
