:root {
  --color-bg: #fff;
  --color-primary: #222;
  --color-secondary: #f4f4f4;
  --color-accent: rgb(230, 240, 255);
  --color-accent-2: #edfffd;
  --color-link: rgb(0, 108, 255);
  --radius: 0.4rem;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --max-width: 48rem;
}

html {
  font-size: 100%;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: system-ui, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
  margin: 0;
  padding: var(--space-s);
  line-height: 1.6;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
h1, h2, h3 {
  color: var(--color-primary);
  margin-top: var(--space-m);
  margin-bottom: var(--space-xs);
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p, ul, ol {
  margin-bottom: var(--space-s);
}
a {
  color: var(--color-link);
  text-decoration: underline;
}
img, svg {
  max-width: 100%;
  height: auto;
}
.header, .footer {
  text-align: center;
  margin-bottom: var(--space-m);
}
.header img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: var(--space-l);
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}
.grid-2 {
  flex-direction: column;
}
.grid-3 {
  flex-direction: column;
}

.flex-grow-1 { flex-grow: 1; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-s { margin-top: var(--space-s); }
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }
.mb-s { margin-bottom: var(--space-s); }
.mb-m { margin-bottom: var(--space-m); }
.mb-l { margin-bottom: var(--space-l); }
.p-s { padding: var(--space-s); }
.p-m { padding: var(--space-m); }
.p-l { padding: var(--space-l); }
.rounded { border-radius: var(--radius); }
.bg-accent { background: var(--color-accent); color: #fff; }


img {
  max-width: 100%;
  height: auto;
  display: block;
}

.card {
  background: linear-gradient(135deg, var(--color-secondary), #e8e8e8);
  border-radius: var(--radius);
  margin-bottom: var(--space-s);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  border: 1px solid var(--color-primary);
}

.card-image {
  margin-bottom: var(--space-s);
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 2;
  /* min-height: 120px;
  max-height: 120px; */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  max-height: 10rem;
}

.card-content {
  /* padding: var(--space-s); */
  /* flex-grow: 1; */
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 200;
  margin-top: 0;
}

.card-content p {
  margin-bottom: 0;
  flex-grow: 1;
}


.inline-card { 
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-s);
}
.card-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
}
.card-white {
  background: var(--color-bg);
  border: none;
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero section styling */
.hero-icon {
  max-width: 200px;
  margin-bottom: var(--space-s);
} 

.spacer {
  flex-grow: 1;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

@media (min-width: 480px) {
  .grid {
    flex-direction: row;
  }
  .grid > * {
    flex: 1 1 0;
  }
  .card {
    /* flex-direction: row; */
    /* padding: var(--space-s); */
  }
  .card-image {
    flex: 1 1 0;
    /* background-color: black; */
    max-height: none;
  }
  .card-content {
    flex: 1 1 0;
    text-align: left;
    /* padding-left: var(--space-s); */
  }
  .card-image img {
    max-height: none;
  }
}

@media (min-width: 768px) {
  .grid {
    flex-direction: row;
  }
  .grid > * {
    flex: 1 1 0;
  }
  .hero-icon {
    font-size: 2.5rem;
  }
  .card {
    flex-direction: column;
    /* padding: var(--space-s); */
    /* padding-left: 0; */
  }
}

/* Custom list styling - remove bullets and add modern look */
ul.clean-list, ul.no-bullets {
  list-style: none;
  padding-left: 0;
}

ul.clean-list li, ul.no-bullets li {
  padding: var(--space-xs) 0 var(--space-xs) var(--space-m);
  position: relative;
  margin-bottom: var(--space-xs);
  background: rgba(213, 247, 243, 0.1);
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

ul.clean-list li:hover, ul.no-bullets li:hover {
  background: rgba(213, 247, 243, 0.2);
}

ul.clean-list li::before, ul.no-bullets li::before {
  content: "→";
  position: absolute;
  left: var(--space-xs);
  color: var(--color-link);
  font-weight: bold;
}