:root {
  --overlap: 100px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #fff;
}

body a:link, 
body a:hover, 
body a:visited, 
body a:active {
	color: #1a5b8dff;
	font-weight: bold;
}

header {
  display: flex;
  background: #2e2e2e;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img { height: 40px; }

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 20px;
}

.hero {
  background: linear-gradient(180deg, #2e2e2e 0%, #3a3a3a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero video {
  width: clamp(280px, 60vw, 900px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  margin-bottom: calc(-2 * var(--overlap));
  pointer-events: none;
}

.hero-links {
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: calc(var(--overlap) + 20px);
}

.hero-links a {
  color: #FFF;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s;
  font-size: 0.95rem;
}

.services {
  background: #fff;
  color: #1a5b8dff;
  text-align: center;
  padding: 80px 20px 60px;
}

.contact {
  background: #fff;
  color: #1a5b8dff;
  text-align: center;
  padding: 80px 20px 60px;
}

.bottom_ad {
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 60px 20px;
}

.feature-card {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #1a5b8dff;
  max-width: 800px;
  width: 90%;
  padding: 80px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 0;
}

.feature-card.show {
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.service-intro {
  background: #fff;
  color: #1a5b8dff;
  text-align: center;
  padding: 80px 20px 40px;
}

.service-intro h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.animated-intro {
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #333;
  width: 0ch;
  opacity: 1;
  margin: 0 auto 10px;
  animation: typeOnly 8s steps(67) 0.5s forwards, blink 0.75s step-end infinite;
}

@media (max-width: 500px) {
  .animated-intro {
    white-space: normal;
    overflow-wrap: break-word;
    width: auto;
    animation: none;
    border-right: none;
    text-align: center;
    font-size: 0.95rem;
  }
}

.animated-intro.fadeout {
  opacity: 0;
  transition: opacity 0.5s ease-out;
  width: 0ch;
  border-right: none;
}

@keyframes typeOnly {
  from { width: 0ch; }
  to   { width: 67ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@media (max-width: 768px) {
  :root {
    --overlap: 60px;
  }

  .hero video {
    width: 80vw;
  }

  .hero-links {
    margin-top: calc(var(--overlap) + 20px);
  }
}

@media (max-height: 600px) {
  :root {
    --overlap: 60px;
  }
}

.capabilities {
  background: linear-gradient(180deg, #2e2e2e 0%, #3a3a3a 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
}

.capabilities h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.capabilities p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 40px;
}

.capability-group {
  display: inline-block;
  vertical-align: top;
  width: 280px;
  max-width: 100%;
  margin: 0 20px 40px;
  text-align: left;
}

.capability-group h3 {
  font-size: .8rem;
  color: #fff;
  margin-bottom: 12px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 4px;
}

.capability-group ul {
  list-style: none;
  padding-left: 0;
}

.capability-group li {
  margin-bottom: 8px;
  font-size: 0.7rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .capability-group {
    width: 100%;
    margin: 0 auto 40px;
  }
}

/* Modal Base */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.7);
}

/* Modal Content */
.modal-content {
  background-color: #fff;
  color: #262e39ff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Close Button */
.close-button {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.5rem;
  color: #262e39ff;
  cursor: pointer;
}

/* Form Styling */
.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: bold;
}

.modal-content input,
.modal-content textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px;
  background-color: #2e2e2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.modal-content button:hover {
  background-color: #444;
}

.copyright {
	color: #3e3e3e;
	text-align: center;
}

.hero-links a:link,
.hero-links a:visited,
.hero-links a:hover,
.hero-links a:active {
  color: #fff;
}

/* ===== Liquid-Death-style FAQ ===== */
.faq-ld {
  background: #ffffff;
  color: #1a5b8dff;
}

.faq-ld .faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.faq-ld .faq-heading {
  text-align: center;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 28px;
}

.faq-ld .faq-item {
  border-top: 1px solid #e3e3e3;
}
.faq-ld .faq-item:last-of-type {
  border-bottom: 1px solid #e3e3e3;
}

.faq-ld .faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: .01em;
}
.faq-ld .faq-item summary::-webkit-details-marker { display: none; }

.faq-ld .faq-item .marker::before {
  content: '+';
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  color: #1a5b8dff;
  transition: transform .2s ease, color .2s ease;
}
.faq-ld .faq-item[open] .marker::before {
  content: '–';
  color: #222;
}

.faq-ld .faq-item .a {
  padding: 0 0 22px;
  max-width: 75ch;
  color: #1a5b8dff;
  font-size: 1rem;
}

.faq-ld .faq-item summary:hover { color: #2e2e2e; }
.faq-ld .faq-item summary:focus-visible {
  outline: 2px solid #2e2e2e; outline-offset: 4px;
}

@media (max-width: 520px) {
  .faq-ld .faq-item summary { padding: 18px 0; }
  .faq-ld .faq-item .a { padding-bottom: 18px; }
}

/* Chime Link + Tooltip */
.chime-wrap { position: relative; display: inline-block; }
.chime-link { color: #0a7b83; font-weight: 700; text-decoration: none; }
.chime-link:hover, .chime-link:focus { color: #095b60; outline: none; }

.chime-tip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2000;
}
.chime-tip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #111;
}
.chime-wrap:hover .chime-tip,
.chime-link:focus + .chime-tip { opacity: 1; visibility: visible; }

/* Venmo Link + Tooltip (Chime style) */
.venmo-wrap { position: relative; display: inline-block; }
.venmo-link { color: #1a5b8dff; font-weight: 700; text-decoration: none; }
.venmo-link:hover, .venmo-link:focus { color: #0d3c5a; outline: none; }

.venmo-tip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2000;
}
.venmo-tip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #111;
}
.venmo-wrap:hover .venmo-tip,
.venmo-link:focus + .venmo-tip { opacity: 1; visibility: visible; }

/* Toast (shared between Chime & Venmo) */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #111;
  color:#fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  font-size: .95rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.copy-toast.show { opacity: 1; }
.legal-section {
  background: transparent;
  color: #fff;
  text-align: center;
  padding-top: 18px;   /* was 40px */
  padding-bottom: 18px;
  margin-top: -36px;   /* pull it up over the preceding space */
}

.legal-section h3 {
  font-size: 2rem;
  margin-top: 0;            /* remove UA top margin */
  margin-bottom: 12px;
}

.legal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.legal-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
  text-align: left;
}

.legal-group h4 {
  font-size: .8rem;              /* same as .capability-group h3 */
  color: #fff;
  margin-bottom: 12px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 4px;
}
.legal-section .legal-link:link,
.legal-section .legal-link:visited,
.legal-section .legal-link:hover,
.legal-section .legal-link:active {
  color: #fff;
  text-decoration: underline;
  font-size: 0.7rem;              /* same as .capability-group li */
  line-height: 1.4;               /* match spacing */
  font-weight: 400;               /* match normal text weight */
  transition: color 0.2s ease;
}
.capabilities + .legal-section {
  padding-top: 28px;        /* tweak 24–32px to taste */
}