/* === Fonts === */

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "GT-Alpina";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/GT-Alpina-Standard-Medium.woff2") format("woff2");
  font-display: swap;
}

/* === Reset === */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #02588F;
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* === Base === */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "GT-Alpina", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
}

/* === Layout === */

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

main {
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

/* === Header === */

.header {
  display: flex;
  padding: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: between;
  width: 100%;
}

.header .logo {
  transition: opacity 0.2s;
}

.header .logo:hover {
  opacity: 0.6;
}

.header .logo svg {
  height: 1.25rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: #f3f4f6;
}

.nav-link-cta {
  border: 1px solid #000;
  text-align: center;
}

.hamburger {
  display: block;
  padding: 0.5rem;
  margin-left: auto;
}

.hamburger svg {
  width: 1rem;
  height: 1rem;
}

/* === Drawer (mobile menu) === */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease-in-out;
}

.drawer-backdrop--closing {
  animation: fadeOut 0.2s ease-in-out;
}

.drawer-panel {
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 75%;
  overflow: auto;
  background: #fff;
  animation: slideInRight 0.2s ease-in-out;
}

.drawer-panel--closing {
  animation: slideOutRight 0.2s ease-in-out;
}

.drawer-close {
  padding: 2rem;
  margin-left: auto;
}

.drawer-close svg {
  width: 1rem;
  height: 1rem;
}

.drawer-nav {
  padding: 0 2rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Hero === */

.hero {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  margin-top: 1.5rem;
}

.hero-text {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideInUp 0.5s ease-in-out;
}

.hero-text h1 {
  max-width: 42rem;
  margin-bottom: 0;
}

.hero-text p {
  font-weight: 600;
}

.hero-blur {
  position: absolute;
  z-index: -1;
  width: 500px;
  height: 50px;
  filter: blur(125px);
  background-color: rgba(0, 0, 0, 0.75);
  transform: translateZ(0);
  animation: floatAround 7.5s linear infinite;
}

.hero-blur--left {
  top: 60%;
  left: 0%;
  animation-delay: -2s;
}

.hero-blur--right {
  top: 40%;
  left: 100%;
  animation-delay: -4s;
}

/* === Sections === */

.layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 0;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.column {
  width: 100%;
}

.column img {
  width: 100%;
}

/* On mobile, image columns show first */
.section .column--image {
  order: -1;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-wrap: pretty;
}

.text-section a:hover {
  text-decoration: underline;
}

/* === Lists === */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  list-style-type: square;
  list-style-position: inside;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Contact === */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-row {
  display: flex;
  gap: 0.75rem;
}

.contact-info-row svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.team-title {
  text-align: center;
  margin-bottom: 4rem;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.person-img {
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.person-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.person-details {
  font-size: 0.875rem;
}

.person-title {
  margin-bottom: 0.5rem;
}

.person-contact {
  color: #4b5563;
}

.person-contact button:hover {
  text-decoration: underline;
}

.person-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* === Privacy === */

.privacy-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 0;
  max-width: 65ch;
  margin: 0 auto;
}

.privacy-page .last-updated {
  font-size: 0.875rem;
}

.privacy-page h1 {
  margin-bottom: 0;
}

/* === Footer === */

.footer {
  padding: 3rem 0;
  font-size: 0.875rem;
  background-color: #f9fafb;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 0 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.footer a:hover {
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* === Utilities === */

.font-medium {
  font-weight: 600;
}

.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;
}

.hidden {
  display: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* === Animations === */

@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes floatAround {
  0%, 100% { transform: translate(-30%, -60%); }
  25% { transform: translate(-30%, -70%); }
  50% { transform: translate(-20%, -60%); }
  75% { transform: translate(-70%, -30%); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* === Responsive === */

@media (min-width: 640px) {
  .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  main {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .header {
    padding: 2rem 4rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }

  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero {
    height: 600px;
  }

  .hero-blur {
    height: 100px;
  }

  .layout {
    gap: 6rem;
    padding: 6rem 0;
  }

  .section {
    flex-direction: row;
    gap: 4rem;
  }

  .column {
    width: 50%;
  }

  .section .column--image {
    order: 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .person {
    align-items: flex-start;
    text-align: left;
  }

  .privacy-page {
    padding: 6rem 0;
  }

  .footer {
    padding: 6rem 0;
  }

  .footer-inner {
    padding: 0 4rem;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
