/* Shared structural styles for site chrome and default sections. */

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}

* { box-sizing: border-box; }

/* Layout adapted from mikbry.com/src/site.css. */
body { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 65ch; margin: 0 auto; padding: 0 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.main-nav a { color: var(--muted-foreground); }
.header-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.lang-toggle { display: flex; gap: 3px; border: 1px solid var(--border); padding: 2px; }
.language-full { display: none; }
.lang-toggle a { font-size: 0.72rem; padding: 3px 10px; }
.site-footer { border-top: 1px solid var(--border); margin-top: auto; padding: 1.75rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-text { margin: 0; font-size: 0.85rem; color: var(--muted-foreground); text-align: center; min-width: 0; }
.social-links { display: flex; gap: 0.25rem; }
.social { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; min-height: 2.25rem; color: var(--muted-foreground); }
.social:hover { background: var(--surface); }
.footer-nav { display: flex; gap: 1rem; font-size: 0.85rem; }
@media (min-width: 640px) {
  .site-footer .container { max-width: 75ch; }
  .footer-inner { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; }
  .footer-text { text-align: left; }
  .social-links, .footer-nav { flex-shrink: 0; }
  .footer-nav { white-space: nowrap; }
}
a:focus-visible, .nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* Shared mikbry.com / Clairn disclosure pattern: keep navigation outside
   details so a closed mobile toggle cannot hide desktop links. */
.mobile-nav { display: none; }
.nav-burger { list-style: none; cursor: pointer; }
.nav-burger::-webkit-details-marker { display: none; }
.nav-burger::marker { content: ""; }
.nav-burger-icon--close { display: none; }
.mobile-nav[open] .nav-burger-icon--open { display: none; }
.mobile-nav[open] .nav-burger-icon--close { display: block; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 3.5rem; gap: 0 1.5rem; }
  .mobile-nav { display: block; margin-left: auto; }
  .nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
  }
  .site-header .main-nav, .header-right { display: none; }
  .site-header:has(.mobile-nav[open]) .header-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    flex-basis: 100%;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding: 0.75rem 0 1rem;
  }
  .header-right .lang-toggle {
    align-self: flex-start;
    gap: 1.5rem;
    border: 0;
    padding: 0;
  }
  .header-right .lang-toggle a[aria-current="true"] {
    background: transparent;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5rem;
  }
  .header-right .lang-toggle a { min-height: 44px; display: flex; align-items: center; padding-inline: 0; font-size: 0.95rem; }
  .language-short { display: none; }
  .language-full { display: inline; }
  .header-right .theme-toggle-menu-item {
    width: 100%;
    padding: 0;
  }
  .site-header:has(.mobile-nav[open]) .main-nav {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 1rem 0.5rem;
  }
  .site-header .main-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline: 0;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--foreground);
  }
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  padding: 0.75rem 1rem;
  background: var(--foreground);
  color: var(--background);
  z-index: 60;
}
.skip-link:focus { transform: translateY(0); }

#page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem;
}

.cta {
  text-align: center;
  padding: 3rem 0;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  border: 1px solid var(--foreground);
  color: var(--foreground);
  text-decoration: none;
}

[id] { scroll-margin-top: 4.5rem; }

a { color: var(--link); }
