/*****************************
 * Base & Root
 *****************************/
html {
  box-sizing: border-box;
  font-size: 100%;
  background: #F1F5F9;
  color: #1e293b;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body.site-body {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #F1F5F9;
  color: #1e293b;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0EA5E9;
  text-decoration: underline;
  transition: color 0.2s;
}

a:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
}

a:hover,
a:active {
  color: #0284c7;
}

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

/*****************************
 * Layout Containers
 *****************************/
.site-header,
.site-footer,
.site-main,
.site-legal-main {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
}

.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-right: 1rem;
  flex-shrink: 0;
  background: #F1F5F9;
}

.site-branding {
  min-width: 0;
  flex: 1 1 120px;
}

.site-caption {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0EA5E9;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.site-nav {
  flex: 2 1 300px;
  margin: 0 1rem;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-list a {
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: #1e293b;
  padding: 0.25em 0.5em;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.site-nav-list a:hover,
.site-nav-list a:focus-visible {
  background: #e0f2fe;
  color: #0EA5E9;
}

.site-legal-links {
  display: flex;
  gap: 1rem;
  font-size: 0.97rem;
  flex-wrap: wrap;
}

.site-legal-links a {
  color: #64748b;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.15em 0.5em;
  transition: background 0.15s, color 0.15s;
}

.site-legal-links a:hover,
.site-legal-links a:focus-visible {
  background: #e0f2fe;
  color: #0EA5E9;
}

/*****************************
 * Skip Link
 *****************************/
.site-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0EA5E9;
  color: #fff;
  padding: 0.5em 1em;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: left 0.2s;
}

.site-skip-link:focus-visible {
  left: 12px;
  outline: 2px solid #fff;
}

/*****************************
 * Hero Section
 *****************************/
.site-hero {
  background: linear-gradient(90deg, #f1f5f9 60%, #e0f2fe 100%);
  border-radius: 0 0 18px 18px;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px 0 rgba(14,165,233,0.06);
}

.site-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0 2rem 0;
  gap: 1.5rem;
}

.site-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(14,165,233,0.14);
  background: #fff;
}

.site-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem 0;
  color: #0EA5E9;
  letter-spacing: 0.01em;
}

.site-subtitle {
  font-size: 1.1rem;
  color: #334155;
  margin: 0 0 0.5rem 0;
}

.site-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: #0EA5E9;
  font-weight: 500;
}

.site-intro {
  font-size: 1.08rem;
  color: #334155;
  margin: 0 auto;
  max-width: 700px;
}

/*****************************
 * Section Styling
 *****************************/
.site-section,
.site-legal-section {
  background: #fff;
  margin-bottom: 2rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(14,165,233,0.07);
  padding: 2rem 2.2rem;
  transition: box-shadow 0.2s;
}

.site-section:last-child {
  margin-bottom: 0;
}

.site-section h2,
.site-legal-section h2 {
  margin-top: 0;
  color: #0EA5E9;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}

.site-section ul,
.site-section ol,
.site-legal-section ul,
.site-legal-section ol {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
}

.site-section li,
.site-legal-section li {
  margin-bottom: 0.5rem;
  font-size: 1.04rem;
}

.site-section p,
.site-legal-section p,
.site-section dl,
.site-legal-section dl {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.site-section dt,
.site-legal-section dt {
  font-weight: 600;
  color: #0EA5E9;
  margin-top: 1rem;
}

.site-section dd,
.site-legal-section dd {
  margin-left: 0;
  margin-bottom: 0.7rem;
}

.site-first-session {
  background: #e0f2fe;
  box-shadow: 0 2px 8px 0 rgba(14,165,233,0.10);
}

/*****************************
 * Feature Images (Bento group)
 *****************************/
.site-feature-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.site-feature-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: #F1F5F9;
  box-shadow: 0 1px 6px 0 rgba(14,165,233,0.07);
  transition: transform 0.18s;
}

.site-feature-img:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
}

.site-feature-img:hover {
  transform: scale(1.06);
}

/*****************************
 * Gallery
 *****************************/
.site-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-gallery-img {
  border-radius: 10px;
  background: #F1F5F9;
  box-shadow: 0 1px 6px 0 rgba(14,165,233,0.07);
  object-fit: contain;
  width: 100%;
  aspect-ratio: 9/16;
  transition: box-shadow 0.18s, transform 0.18s;
}

.site-gallery-img:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
}

.site-gallery-img:hover {
  box-shadow: 0 4px 16px 0 rgba(14,165,233,0.18);
  transform: scale(1.03);
}

/*****************************
 * Footer
 *****************************/
.site-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  margin-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.site-footer-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.site-footer-desc {
  margin: 0 0 0.5rem 0;
  color: #334155;
  font-size: 1.05rem;
}

.site-footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer-nav a {
  color: #64748b;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.15em 0.5em;
  transition: background 0.15s, color 0.15s;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  background: #e0f2fe;
  color: #0EA5E9;
}

.site-copyright {
  font-size: 0.96rem;
  color: #94a3b8;
  margin: 0;
}

/*****************************
 * Cookie Banner
 *****************************/
.site-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0EA5E9;
  color: #fff;
  padding: 1.2rem 1.5rem 1rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 -2px 12px 0 rgba(14,165,233,0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 1.06rem;
  border-radius: 16px 16px 0 0;
  max-width: 600px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.18s;
}

.site-cookie p {
  margin: 0;
  flex: 1 1 0;
}

.site-cookie-button {
  background: #fff;
  color: #0EA5E9;
  border: none;
  border-radius: 7px;
  padding: 0.5em 1.2em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.site-cookie-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-cookie-button:hover {
  background: #e0f2fe;
  color: #0284c7;
}

/*****************************
 * Legal Page Styling
 *****************************/
.site-legal-main {
  background: #F1F5F9;
  min-height: 100vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-legal-section {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(14,165,233,0.07);
  padding: 2rem 2.2rem;
}

.site-legal-section:last-child {
  margin-bottom: 0;
}

/*****************************
 * Responsive
 *****************************/
@media (max-width: 900px) {
  .site-header-inner,
  .site-footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .site-header {
    padding-bottom: 0;
  }
  .site-nav {
    margin: 0 0 0.5rem 0;
  }
  .site-nav-list {
    gap: 1rem;
    justify-content: flex-start;
  }
  .site-legal-links {
    gap: 0.7rem;
  }
  .site-section,
  .site-legal-section {
    padding: 1.5rem 1rem;
  }
  .site-feature-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .site-main,
  .site-legal-main {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .site-section,
  .site-legal-section {
    padding: 1.1rem 0.5rem;
    border-radius: 10px;
  }
  .site-hero-content {
    padding: 1.3rem 0 1.1rem 0;
    gap: 1rem;
  }
  .site-title {
    font-size: 1.35rem;
  }
  .site-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }
  .site-feature-images {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.1rem;
  }
  .site-feature-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .site-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
  .site-gallery-img {
    border-radius: 6px;
  }
  .site-stats {
    gap: 0.7rem 1.2rem;
    font-size: 0.97rem;
  }
  .site-footer-nav {
    gap: 0.8rem;
  }
  .site-cookie {
    font-size: 0.98rem;
    padding: 0.8rem 0.7rem 0.7rem 0.7rem;
    border-radius: 10px 10px 0 0;
    max-width: 95vw;
  }
}

@media (max-width: 430px) {
  .site-header-inner,
  .site-footer-inner {
    gap: 0.7rem;
  }
  .site-caption {
    font-size: 1rem;
  }
  .site-section,
  .site-legal-section {
    padding: 0.7rem 0.2rem;
  }
  .site-title {
    font-size: 1.07rem;
  }
}

/*****************************
 * Accessibility & Motion
 *****************************/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}