:root {
  --bg: #f5f7f8;
  --bg2: #111315;
  --accent: #0057d9;
  --accent2: #0057d9;
  --accent3: #0057d9;
  --ink: #1b1f23;
  --muted: #2b3136;
  --card: rgba(245, 247, 248, 0.92);
  --glass: rgba(245, 247, 248, 0.8);
  --stroke: rgba(17, 19, 21, 0.25);
  --dark-text: #1b1f23;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Archivo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  background: radial-gradient(circle at 20% 20%, rgba(0, 87, 217, 0.16), transparent 55%);
  filter: blur(140px);
  opacity: 0.2;
  z-index: 0;
  animation: swirl 18s linear infinite;
  pointer-events: none;
}

.hero {
  padding: 32px 8vw 80px;
  position: relative;
  z-index: 1;
}

.logo-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  /* Logo is decorative; without this it can sit on top of nav links on narrow screens and eat all taps */
  pointer-events: none;
}

.logo-mark img {
  width: min(320px, 70vw);
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
}


.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-cta {
  background: linear-gradient(120deg, var(--accent2), var(--accent3));
  border: none;
  padding: 12px 22px;
  color: var(--dark-text);
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 87, 217, 0.35);
}

.hero-content {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 12px 0 18px;
  font-family: "Fraunces", serif;
  color: var(--accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent3);
  font-size: 0.75rem;
  font-weight: 600;
}

.subhead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 540px;
}

.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 3;
}

.fb-fallback {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.fb-fallback a {
  color: var(--accent);
  word-break: break-all;
}

.fb-fallback .fb-url {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink);
}

.tab-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--stroke);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(245, 247, 248, 0.9);
  max-width: 100%;
  white-space: normal;
  text-align: center;
  /* Faster taps on mobile; avoids some in-app browser quirks with external links */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 87, 217, 0.25);
  cursor: pointer;
}

.tab-link:hover,
.tab-link:focus {
  background: var(--accent);
  color: #f5f7f8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.primary,
.ghost,
.card-cta,
.plan button {
  border-radius: 30px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.primary {
  background: var(--accent);
  color: #f5f7f8;
  box-shadow: 0 12px 30px rgba(0, 87, 217, 0.35);
}

.ghost {
  background: transparent;
  border: 1px solid #111315;
  color: #111315;
}

.hero-metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-metrics .metric {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

.hero-metrics .label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(17, 19, 21, 0.18);
  transform: rotate(-1.5deg);
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  align-self: flex-start;
  background: rgba(17, 19, 21, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
}

.card-body {
  display: grid;
  gap: 16px;
}

.stat {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.card-cta {
  background: var(--accent3);
  color: #111315;
  font-weight: 700;
}

section {
  padding: 80px 8vw;
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.about {
  background: transparent;
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  color: var(--muted);
  line-height: 1.7;
}

.about-highlight {
  background: var(--glass);
  border: 1px solid var(--stroke);
  padding: 24px;
  border-radius: 18px;
  color: var(--ink);
}

.about-highlight ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.services {
  background: transparent;
}

.service-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article {
  background: var(--glass);
  border: 1px solid var(--stroke);
  padding: 20px;
  border-radius: 18px;
  line-height: 1.65;
}

.contact {
  background: transparent;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  padding: 24px;
  border-radius: 18px;
}

.contact-info {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(245, 247, 248, 0.95);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
}

.contact-form button {
  justify-self: flex-start;
}

.footer {
  padding: 60px 8vw 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  color: #f5f7f8;
  border-top: 1px solid var(--stroke);
}

@keyframes swirl {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .hero {
    padding: 20px 6vw 60px;
  }

  .logo-mark {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .logo-mark img {
    width: min(380px, 88vw);
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
  }

  .subhead {
    font-size: 1.05rem;
  }

  section {
    padding: 60px 6vw;
  }

  .service-grid,
  .contact-grid,
  .about-grid {
    gap: 18px;
  }

  .service-grid article,
  .contact-card {
    padding: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px;
  }

  .primary,
  .ghost,
  .card-cta,
  .plan button {
    width: 100%;
    padding: 14px 20px;
  }

  .contact-form button {
    justify-self: stretch;
  }

  .tab-link {
    flex: 1 1 100%;
  }

  .service-grid article h3 {
    font-size: 1.05rem;
  }

  .service-grid article p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .nav-links {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

