/*
Theme Name: LV Tech Connect Bento
Description: Calm, accessible bento-style WordPress theme for LV Tech Connect.
Author: Matthew Mattioli
Version: 4.2.0
*/

:root {
  color-scheme: light;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --color-cobalt: #2D46B9;
  --color-sky: #38BDF8;
  --color-lime: #C8F400;
  --color-violet: #8B5CF6;
  --color-coral: #FF7E67;
  --color-midnight: #020617;
  --color-white: #FFFFFF;

  --bg: #F5F7FB;
  --bg-soft: #EAF0F8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #FFFFFF;
  --surface-muted: #F8FAFC;
  --text: #0F172A;
  --muted: #475569;
  --border: rgba(45, 70, 185, 0.12);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.06);
  --focus: #C8F400;

  --radius-bento: 2.35rem;
  --radius-card: 1.6rem;
  --radius-pill: 9999px;
  --container: 1400px;
  --header-height: 5.5rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111F;
  --bg-soft: #142033;
  --surface: rgba(17, 27, 44, 0.94);
  --surface-solid: #111B2C;
  --surface-muted: #17243A;
  --text: #F8FAFC;
  --muted: #CBD5E1;
  --border: rgba(203, 213, 225, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 12rem, rgba(200, 244, 0, 0.1), transparent 24rem),
    var(--bg);
  font-size: 18px;
  line-height: 1.6;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(45, 70, 185, 0.28), transparent 32rem),
    radial-gradient(circle at 90% 10rem, rgba(56, 189, 248, 0.13), transparent 26rem),
    var(--bg);
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-bento);
}

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

a:not(.btn):not(.site-branding):not(.primary-menu a):hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-midnight);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-block: 2rem;
}

/* Header and glass menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 1rem;
  pointer-events: none;
}

.site-header .container,
.header-inner {
  pointer-events: auto;
}

.header-inner {
  min-height: 4.5rem;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.55rem 0.5rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .header-inner {
  background: rgba(17, 27, 44, 0.76);
  border-color: rgba(203, 213, 225, 0.2);
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-icon,
.btn-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--color-cobalt);
  color: #fff;
  flex: 0 0 auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.primary-menu a {
  display: block;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: rgba(45, 70, 185, 0.1);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle__line,
.menu-toggle__line::before,
.menu-toggle__line::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle__line::before {
  transform: translateY(-0.42rem);
}

.menu-toggle__line::after {
  transform: translateY(0.3rem);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line::before {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line::after {
  transform: translateY(-0.1rem) rotate(90deg);
}

/* Theme switch */
.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 76px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.35rem;
}

.theme-toggle__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.theme-toggle__icon svg,
.theme-toggle__icon i {
  width: 18px;
  height: 18px;
}

.theme-toggle__knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s ease;
}

[data-theme="dark"] .theme-toggle__knob {
  transform: translateX(34px);
  background: #263A5C;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.bg-cobalt.btn,
.btn.bg-cobalt {
  background: var(--color-cobalt);
  color: #fff;
  box-shadow: 0 12px 24px rgba(45, 70, 185, 0.22);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-midnight);
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .btn-light,
.site-footer .btn-light {
  background: var(--color-white);
  color: var(--color-midnight);
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--radius-bento);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 70, 185, 0.22);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.11);
}

[data-theme="dark"] .bento-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
}

.bento-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%);
  content: "";
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.bento-img-container {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bento-img-container img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.service-card {
  gap: 0;
}

.card-image {
  width: calc(100% + 1.2rem);
  max-width: none;
  height: 12rem;
  margin: -0.9rem -0.6rem 1.3rem;
  object-fit: cover;
  border-radius: calc(var(--radius-bento) - 0.55rem);
}

.card-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.link-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-top: auto;
  color: var(--color-cobalt);
  font-weight: 900;
}

.link-cue svg,
.link-cue i {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.2s ease;
}

.card-link:hover .link-cue svg,
.card-link:hover .link-cue i,
.standalone-link:hover svg,
.standalone-link:hover i {
  transform: translateX(3px);
}

.bg-cobalt .link-cue {
  color: #fff;
}

.bento-icon {
  width: 64px;
  height: 64px;
  background: rgba(45, 70, 185, 0.1);
  color: var(--color-cobalt);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}

.bento-icon svg,
.bento-icon i {
  width: 32px;
  height: 32px;
  color: currentColor;
}

.bg-soft {
  background: var(--surface-muted);
}

.bg-cobalt {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--color-cobalt);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.bg-sky {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(255, 255, 255, 0.9));
  color: var(--text);
}

.bg-lime {
  background: linear-gradient(135deg, rgba(200, 244, 0, 0.22), rgba(255, 255, 255, 0.9));
  color: var(--text);
}

.bg-violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.92));
  color: var(--text);
}

.bg-coral {
  background: linear-gradient(135deg, rgba(255, 126, 103, 0.18), rgba(255, 255, 255, 0.92));
  color: var(--text);
}

[data-theme="dark"] .bg-sky {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(17, 27, 44, 0.95));
}

[data-theme="dark"] .bg-lime {
  background: linear-gradient(135deg, rgba(200, 244, 0, 0.14), rgba(17, 27, 44, 0.95));
}

[data-theme="dark"] .bg-violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(17, 27, 44, 0.95));
}

[data-theme="dark"] .bg-coral {
  background: linear-gradient(135deg, rgba(255, 126, 103, 0.18), rgba(17, 27, 44, 0.95));
}

.bg-cobalt .bento-icon,
.bg-cobalt .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Typography */
.eyebrow {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(45, 70, 185, 0.1);
  border-radius: var(--radius-pill);
  color: var(--color-cobalt);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
  width: fit-content;
}

[data-theme="dark"] .eyebrow {
  background: rgba(56, 189, 248, 0.14);
  color: #BAE6FD;
}

.bento-card h1,
.bento-card h2,
.bento-card h3 {
  margin: 0 0 0.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.bento-card h1 {
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  max-width: 13ch;
}

.bento-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.bento-card h3 {
  font-size: 1.4rem;
}

.bento-card p,
.bento-card li {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.bg-cobalt p,
.bg-cobalt li {
  color: rgba(255, 255, 255, 0.88);
}

.bento-card p:last-child {
  margin-bottom: 0;
}

.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--color-lime);
  content: "";
}

.inline-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.trust-card,
.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 800;
}

.trust-list svg,
.trust-list i {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-cobalt);
  flex: 0 0 auto;
}

.section-intro {
  min-height: auto;
}

.standalone-link {
  margin-top: 1rem;
}

.faq-card {
  display: block;
}

.faq-card summary {
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.faq-card p {
  margin-top: 1rem;
}

/* Forms */
.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-bento);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

.form-row input,
.form-row select {
  border-radius: var(--radius-pill);
}

.form-row textarea {
  min-height: 150px;
  border-radius: 1.5rem;
  resize: vertical;
}

.notice {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.notice-success {
  background: rgba(200, 244, 0, 0.24);
  color: #214000;
}

.notice-error {
  background: rgba(255, 126, 103, 0.22);
  color: #7F1D1D;
}

[data-theme="dark"] .notice-error {
  color: #FECACA;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
}

.footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr) auto;
  gap: 2rem;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-float {
  animation: lvtcFloat 8s ease-in-out infinite;
}

@keyframes lvtcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1120px) {
  .header-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }

  .header-nav.is-open {
    display: grid;
  }

  .primary-menu {
    display: grid;
    gap: 0.25rem;
  }

  .primary-menu a {
    padding: 0.85rem 1rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .theme-toggle {
    width: 100%;
    justify-self: stretch;
  }

  .theme-toggle__knob {
    display: none;
  }

  .header-nav .btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .col-3,
  .col-4,
  .col-5,
  .col-7 {
    grid-column: span 6;
  }

  .col-8 {
    grid-column: span 12;
  }

  .footer-card {
    grid-template-columns: 1fr;
  }

  .trust-card,
  .contact-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 1rem, var(--container));
    padding-block: 1rem;
  }

  .site-header {
    padding-top: 0.5rem;
  }

  .header-inner {
    border-radius: 1.5rem;
  }

  .site-branding span {
    font-size: 1rem;
  }

  .col-4,
  .col-3,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }

  .bento-grid {
    gap: 1rem;
  }

  .bento-card {
    border-radius: 1.65rem;
  }

  .bento-card h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .bento-img-container img {
    min-height: 14rem;
    border-radius: 1.65rem;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
