/* ============================================================
   Nova Marketing — components.css
   Navbar, buttons, cards, footer, theme toggle
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 26px;
  font-weight: 600;
  font-size: .98rem;
  border-radius: var(--radius-pill);
  transition: transform var(--t-fast), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 12px 32px var(--glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--t);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--t), background var(--t), border-color var(--t);
}

.nav.scrolled {
  height: 60px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav__brand img {
  height: 34px;
  width: auto;
}
.nav__brand .wordmark v,
.nav__brand .wordmark .accent {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  position: relative;
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--t);
}
.nav__link:hover,
.nav__link.active {
  color: var(--ink);
}
.nav__link.active::after,
.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Mobile nav toggle ---------- */
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  color: var(--ink);
}

/* ---------- Cards (generic) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow);
}

/* ---------- Service card (clean full card) ---------- */
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: var(--shadow);
}

.service-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.service-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}
.service-card__desc {
  font-size: .96rem;
  color: var(--ink-2);
  margin-bottom: var(--space-4);
}
.service-card__more {
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card__more::after {
  content: "→";
  transition: transform var(--t);
}
.service-card:hover .service-card__more::after { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
}
.footer__brand img {
  height: 46px;
  width: auto;
  margin-bottom: var(--space-4);
}
.footer__about {
  font-size: .95rem;
  color: var(--ink-2);
  max-width: 32ch;
}
.footer__col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
}
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a {
  font-size: .96rem;
  color: var(--ink-2);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--accent); }

.footer__contact li {
  font-size: .95rem;
  color: var(--ink-2);
  margin-bottom: var(--space-3);
}
.footer__contact strong {
  display: block;
  color: var(--ink-3);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 2px;
  font-weight: 600;
}

.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--ink-3);
}

/* ============================================================
   Forms (Phase 2) — contact + request-package
   ============================================================ */
.form {
  display: grid;
  gap: var(--space-4);
}
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.field {
  display: grid;
  gap: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.field .req { color: var(--accent); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-3); }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
.input:user-invalid,
.textarea:user-invalid {
  border-color: #dc2626;
}

.textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Custom select with chevron */
.select-wrap { position: relative; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* Honeypot — visually hidden, off-screen, not display:none (so bots fill it) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Submit button loading state */
.btn[type="submit"].is-loading {
  opacity: .7;
  cursor: progress;
}
.btn[type="submit"]:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Status message */
.form__status {
  display: none;
  font-size: .95rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.form__status.is-pending {
  display: block;
  background: var(--bg-2);
  color: var(--ink-2);
  border-color: var(--line);
}
.form__status.is-success {
  display: block;
  background: color-mix(in srgb, #16a34a 14%, var(--bg));
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, transparent);
}
.form__status.is-error {
  display: block;
  background: color-mix(in srgb, #dc2626 12%, var(--bg));
  color: #dc2626;
  border-color: color-mix(in srgb, #dc2626 35%, transparent);
}
