/* ==========================================================================
   Donlon Life Science Consulting
   Dark teal theme · Wave texture · Animated sparkle
   Matching original Carrd aesthetic with proper semantic HTML
   ========================================================================== */

/* --- 1. Custom Properties --- */
:root {
  --bg: #212429;
  --bg-teal: #265C73;
  --bg-teal-dark: #1e4d61;
  --bg-surface: #2a2e34;
  --bg-surface-light: #32363e;
  --bg-glass: rgba(33, 36, 41, 0.92);

  --teal: #5997AB;
  --teal-bright: #7ec8e0;
  --teal-border: rgba(125, 142, 145, 0.141);

  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.45);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --max-w: 1140px;
  --radius: 12px;
  --transition: 0.25s ease;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Wave pattern background — fixed, full page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512' preserveAspectRatio='none'%3E%3Cstyle%3Epath%7Bfill:none;stroke-width:2px;stroke:rgba(255,255,255,0.035);vector-effect:non-scaling-stroke%7D%3C/style%3E%3Cpath d='M0,448c128,0,128-128,256-128s128,128,256,128'/%3E%3Cpath d='M0,192c128,0,128-128,256-128s128,128,256,128'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* Sparkle dots overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle 1px, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: sparkle-drift 30s linear infinite;
}

@keyframes sparkle-drift {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }

/* Everything needs to sit above the fixed backgrounds */
.header, main, .footer { position: relative; z-index: 1; }

/* --- 3. Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.15; color: #fff;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-family: var(--font-body); font-weight: 600; }
p { margin-bottom: 1em; }

/* --- 4. Accessibility --- */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--teal); color: #fff;
  padding: 0.75rem 1.5rem; z-index: 10000;
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* --- 5. Sections --- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-title {
  text-align: center; margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* --- 6. Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.6rem; border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--teal); color: #fff;
  border-color: var(--teal);
  box-shadow: 0 2px 16px rgba(89, 151, 171, 0.3);
}
.btn-primary:hover {
  background: var(--teal-bright); border-color: var(--teal-bright);
  box-shadow: 0 4px 24px rgba(89, 151, 171, 0.4);
  color: #1a1a1a;
}

.btn-secondary {
  background: transparent;
  color: var(--teal-bright); border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal); color: #fff;
}

.btn-accent {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text); border-color: rgba(255, 255, 255, 0.2);
}
.btn-accent:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- 7. Badge --- */
.badge {
  display: inline-block; padding: 0.2rem 0.75rem;
  border-radius: 50px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-coming-soon {
  background: var(--bg-teal-dark); color: var(--teal-bright);
  border: 1px solid var(--teal);
}
.badge-free {
  background: rgba(89, 151, 171, 0.15);
  color: var(--teal-bright); border: 1px solid var(--teal);
}

/* --- 8. Card --- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px dashed var(--teal-border);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

/* --- 9. Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0.85rem 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.logo:hover { opacity: 0.85; }

.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; padding-bottom: 2px; position: relative;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06); padding: 1rem 24px 1.5rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  color: var(--text-secondary); font-size: 0.95rem;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--teal-bright); text-decoration: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}

/* --- 10. Hero --- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background:
    radial-gradient(ellipse 800px 600px at 30% 40%, rgba(89, 151, 171, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 70% 60%, rgba(38, 92, 115, 0.15) 0%, transparent 70%),
    var(--bg);
  padding-top: 80px;
}

.hero-content {
  max-width: 700px; padding: 2rem 1.5rem;
  animation: fade-up 0.8s ease-out;
}
.hero h1 { margin-bottom: 1rem; }
.hero p {
  font-size: 1.15rem; color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero p:last-of-type { margin-bottom: 2.5rem; }

.hero-buttons {
  display: flex; flex-direction: column;
  gap: 0.65rem; align-items: center;
}
@media (min-width: 768px) {
  .hero-buttons { flex-direction: row; justify-content: center; gap: 0.75rem; }
}

/* --- 11. Benefits --- TEAL BACKGROUND SECTION */
.benefits {
  background: var(--bg-teal);
  border-top: 3px dashed var(--teal-border);
}
.benefits .section-title { color: #fff; }

.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.benefit-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--teal-border);
  border-radius: var(--radius);
}
.benefit-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-icon { color: var(--teal-bright); margin-bottom: 1rem; }
.card-icon svg { display: block; }
.benefit-card h3 { margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0; }

@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- 12. About --- */
.about {
  background: var(--bg);
  border-top: 3px dashed var(--teal-border);
}
.about-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 2.5rem;
}
.about-image { flex-shrink: 0; }
.about-image img {
  width: 220px; height: 220px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 0 40px rgba(89, 151, 171, 0.2);
}
.about-text { text-align: center; }
.about-text h2 { margin-bottom: 0.75rem; }
.about-text p { color: var(--text-secondary); font-size: 1rem; }

@media (min-width: 768px) {
  .about-inner { flex-direction: row; align-items: center; gap: 4rem; }
  .about-image img { width: 260px; height: 260px; }
  .about-text { text-align: left; }
}

/* --- 13. Security --- TEAL BACKGROUND */
.security {
  background: var(--bg-teal);
  border-top: 3px dashed var(--teal-border);
}
.security-inner {
  text-align: center; max-width: 640px; margin: 0 auto;
}
.security-icon { color: var(--teal-bright); margin-bottom: 1.5rem; }
.security-inner h2 { margin-bottom: 1rem; }
.security-inner p { color: var(--text-secondary); font-size: 1.05rem; }

/* --- 14. Services --- */
.services {
  background: var(--bg);
  border-top: 3px dashed var(--teal-border);
}
.services-intro {
  text-align: center; max-width: 640px;
  margin: 0 auto 3rem; color: var(--text-secondary); font-size: 1rem;
}
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius); overflow: hidden;
  border: 1px dashed var(--teal-border);
  transition: transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.service-card-header {
  background: linear-gradient(135deg, var(--bg-teal-dark), var(--bg-teal));
  padding: 1.75rem; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.service-card-header h3 { margin-bottom: 0.35rem; }

.service-step {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-bright); margin-bottom: 0.35rem; opacity: 0.8;
}
.service-price {
  font-size: 1.8rem; font-weight: 800;
  font-family: var(--font-body); color: #fff;
}
.service-price-period {
  font-size: 0.8rem; font-weight: 400; color: var(--text-secondary);
}

.service-card-body {
  padding: 1.75rem; flex: 1;
  display: flex; flex-direction: column;
}
.service-card-body h4 {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.service-card-body p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.25rem; }
.service-card-body ul { margin-bottom: 1.5rem; flex: 1; }
.service-card-body li {
  padding: 0.35rem 0 0.35rem 1.4rem; color: var(--text-secondary);
  font-size: 0.92rem; position: relative;
}
.service-card-body li::before {
  content: "\2713"; position: absolute; left: 0;
  color: var(--teal-bright); font-weight: 700; font-size: 0.85rem;
}
.service-card-body .btn { width: 100%; }

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- 15. PraxisVerify --- TEAL BACKGROUND */
.praxisverify {
  background: var(--bg-teal);
  border-top: 3px dashed var(--teal-border);
}
.praxisverify-inner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--teal-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}
.praxisverify-inner h2 { margin-bottom: 0.5rem; }
.praxisverify-inner .badge { margin-bottom: 1rem; display: inline-block; }
.praxisverify-inner p { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 1.25rem; }
.praxisverify-inner .btn { margin-top: 0.5rem; }

@media (min-width: 768px) { .praxisverify-inner { padding: 3rem; } }

/* --- 16. Footer --- */
.footer {
  background: #1a1d21;
  border-top: 3px dashed var(--teal-border);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.5rem 24px; text-align: center;
}
.footer-inner p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.25rem; }
.footer-inner a { color: var(--teal); }
.footer-inner a:hover { color: var(--teal-bright); }

/* --- 17. Utilities --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--teal); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- 18. Animations --- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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