@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* =========================================================
   Cal Valley Technology Group - Shared Site Styles
   ========================================================= */

:root {
  --primary-blue: #0E4064;
  --secondary-blue: #3E8DCF;
  --cta: #3E8DCF;
  --cta-hover: #2F7FBF;
  --accent-warm: #FF9F43;
  --success: #28A97B;
  --warning: #F1C40F;
  --error: #E74C3C;
  --light-bg: #F5F2EC;
  --dark-text: #1F2A33;
  --light-text: #F8F9FA;
  --border-color: #E0E0E0;
  --soft-border: rgba(14, 64, 100, 0.14);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 10px 26px rgba(14, 64, 100, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

a {
  color: var(--primary-blue);
}

a:hover {
  color: var(--cta);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  z-index: 2000;
}

:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

/* =========================================================
   Header and Navigation
   ========================================================= */

header {
  background-color: var(--primary-blue);
  padding: 12px 0;
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--light-text);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-area {
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.brand-logo {
  display: block;
  height: 43px;
  width: auto;
}

.brand-text-svg {
  height: 40px;
  width: auto;
  max-width: 58vw;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul li {
  margin: 0;
  padding-left: 0;
}

nav ul li::before {
  content: none !important;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
  color: var(--cta);
  border-bottom: 2px solid var(--cta);
}

.hamburger {
  display: none;
  background: transparent;
  border: 2px solid var(--light-text);
  color: var(--light-text);
  border-radius: 6px;
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
}

/* =========================================================
   Unified Hero System
   ========================================================= */

.hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--light-text);
  overflow: hidden;
}

.hero.hero--compact {
  min-height: 315px;
}

.hero.help-hero,
body.help-page .hero {
  min-height: 255px;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback background if images do not load */
.hero {
  background:
    linear-gradient(135deg, rgba(1, 20, 48, .94), rgba(14, 64, 100, .88)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.05) 0,
      rgba(255,255,255,.05) 1px,
      transparent 1px,
      transparent 34px
    );
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(1, 20, 48, .78), rgba(14, 64, 100, .80)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.055) 0,
      rgba(255,255,255,.055) 1px,
      transparent 1px,
      transparent 34px
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 64px 20px;
  max-width: 960px;
}

.hero.hero--compact .hero__content {
  padding: 52px 20px;
}

.hero.help-hero .hero__content,
body.help-page .hero .hero__content {
  padding: 42px 20px;
}

.hero__content h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.hero.hero--compact .hero__content h1,
.hero.help-hero .hero__content h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}

.hero__content p {
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin: 0 auto 28px;
  max-width: 66ch;
}

.hero.help-hero .hero__content p {
  margin-bottom: 0;
  max-width: 820px;
}

.hero__ctas {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background-color .2s ease, transform .2s ease;
}

.hero-badge:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-2px);
}

/* Legacy hero-section compatibility */
.hero-section {
  background: linear-gradient(180deg, #123C56 0%, #0E4064 100%);
  color: var(--light-text);
  text-align: center;
  padding: 64px 20px 52px;
}

.hero-section h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  margin: 0 0 18px;
  line-height: 1.15;
  font-weight: 700;
}

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.22rem);
  max-width: 860px;
  margin: 0 auto 30px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-primary {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  padding: 13px 26px;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 1.05em;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background-color .2s ease, transform .2s ease;
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--light-text);
  color: var(--light-text);
  padding: 13px 26px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.05em;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  background: transparent;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   Layout and Cards
   ========================================================= */

.section-container,
.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-card,
.content {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  padding: 40px;
}

.section-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.section-card .column {
  flex: 1;
  min-width: 300px;
}

h2,
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
}

h2 {
  color: var(--primary-blue);
  font-size: 2.2em;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--cta);
  margin-top: 10px;
}

h3 {
  color: var(--primary-blue);
}

.section-intro {
  max-width: 860px;
  margin: 0 0 28px;
  color: #46535c;
  font-size: 1.05rem;
}

.muted {
  color: #666;
  font-size: 0.95em;
}

/* Checkmark lists only inside normal section cards */
.section-card ul {
  list-style: none;
  padding-left: 0;
}

.section-card ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.section-card ul li::before {
  content: '✓';
  color: var(--cta);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* =========================================================
   Resources Page
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  color: var(--primary-blue);
  margin-top: 0;
}

.card .kicker,
.kicker {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.readmore {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.readmore:hover {
  color: var(--cta);
  text-decoration: underline;
}

.callout,
.note-panel {
  border: 1px solid rgba(62,141,207,.24);
  border-left: 5px solid var(--cta);
  background: #f7fbff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

/* =========================================================
   Partner / Certification Page
   ========================================================= */

.partner-grid,
.cert-grid {
  display: grid;
  gap: 22px;
}

.partner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-card,
.cert-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.logo-box {
  height: 155px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfbfb;
  border-bottom: 1px solid var(--border-color);
}

.logo-box img {
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
  display: block;
}

.logo-box.logo-dark {
  background: #101820;
}

.logo-box.logo-bitdefender {
  background: #0b7bff;
}

.logo-box.logo-adobe {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.logo-box.logo-cce img {
  max-height: 118px;
}

.logo-box.logo-google {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--primary-blue);
  text-align: center;
}

.adobe-badge-text,
.google-badge-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.1;
  text-align: center;
}

.adobe-badge-text {
  gap: 6px;
}

.adobe-badge-text strong {
  color: #E1251B;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.adobe-badge-text span,
.google-badge-text span {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.adobe-badge-text span {
  color: var(--primary-blue);
}

.google-badge-text strong {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.google-badge-text span {
  color: var(--secondary-blue);
}

.card-body {
  padding: 22px;
  flex: 1;
}

.eyebrow {
  display: block;
  color: var(--secondary-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-body p {
  margin: 0;
  color: #44515a;
  font-size: .98rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.trust-item strong {
  display: block;
  color: var(--primary-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 5px;
}

.trust-item span {
  color: #4b5961;
  font-size: .95rem;
}

/* =========================================================
   Forensics Page
   ========================================================= */

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.credential-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.credential-logo {
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #f7fbff;
  border-bottom: 1px solid var(--border-color);
}

.credential-logo img {
  max-width: 100%;
  max-height: 105px;
  object-fit: contain;
  display: block;
}

.credential-body {
  padding: 20px;
}

.credential-body h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.credential-body p {
  margin: 0;
  color: #44515a;
  font-size: .98rem;
}

.small-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(62,141,207,.24);
  border-radius: 12px;
  background: #f7fbff;
  color: #44515a;
}

/* =========================================================
   Help / Remote Support Page
   ========================================================= */

.remote-support-panel {
  max-width: 860px;
  margin: 0 auto 28px;
}

.remote-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 10px;
}

.support-dark {
  color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}

.support-dark:hover {
  background: rgba(14,64,100,.08) !important;
  color: var(--primary-blue) !important;
}

.support-note {
  border: 1px solid rgba(231,76,60,.24);
  border-left: 5px solid var(--error);
  background: #fff7f2;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 24px;
}

.remote-support-mini {
  max-width: 900px;
  margin: 0 auto;
}

.remote-support-mini p {
  font-size: 1.05rem;
}

.remote-support-mini a {
  font-weight: 700;
}

/* =========================================================
   Contact, Footer, Floating Contact
   ========================================================= */

.cta-section {
  text-align: center;
  padding: 55px 20px;
  background-color: var(--light-bg);
}

.cta-section .section-card {
  max-width: 1200px;
  margin: 0 auto;
}

.cta-section h2::after {
  margin: 10px auto 0;
}

.contact-info p {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--cta);
}

.logo-footer,
.site-logo-footer {
  text-align: center;
  padding: 20px 20px 0;
}

.logo-footer img,
.site-logo-footer img {
  height: 230px;
  max-width: 80%;
  object-fit: contain;
}

footer {
  background-color: var(--primary-blue);
  color: var(--light-text);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  margin-top: 40px;
}

.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1100;
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .partner-grid,
  .cert-grid,
  .trust-strip,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-text-svg {
    max-width: 54vw;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }

  .hamburger {
    display: inline-block;
    margin-top: 12px;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: block;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    transition: max-height 240ms ease, opacity 200ms ease, transform 200ms ease;
    margin-top: 10px;
  }

  nav.open ul {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav ul li {
    padding: 8px 0;
  }

  .hero {
    min-height: 340px;
  }

  .hero.hero--compact {
    min-height: 270px;
  }

  .hero.help-hero,
  body.help-page .hero {
    min-height: 230px;
  }

  .hero__content {
    padding: 52px 16px;
  }

  .section-card,
  .content {
    padding: 30px;
  }

  .section-card {
    flex-direction: column;
  }

  h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 620px) {
  .partner-grid,
  .cert-grid,
  .trust-strip,
  .grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .logo-box {
    height: 145px;
  }

  .section-container,
  .container {
    margin: 42px auto;
  }

  .section-card,
  .content {
    padding: 24px;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-text-svg {
    height: 32px;
    max-width: 62vw;
  }

  .contact-fab {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 310px;
  }

  .hero__content {
    padding: 46px 16px;
  }

  .hero__content h1 {
    font-size: 1.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .hero-badge:hover,
  .contact-fab:hover {
    transform: none;
  }
}
