/* Base */
:root{
  --purple-700: #5A1E99;
  --purple-800: #4a127f;
  --text-on-purple: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: 0 8px 30px rgba(0,0,0,.20);
  --radius-2xl: 20px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html, body {
  padding: 0;
  margin: 0;

}

body {
  background: url("hamster-landing-bg.svg"), var(--purple-700);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

body, main {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--text-on-purple);
  overflow-x: hidden;
  min-height: 100vh;
}

svg {
    width: 100%;
    height: auto;
}

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

.main-logo {
    max-width: 20rem;
}

/* Background decorative SVG */
.bg-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


/* Layout */
.wrapper{
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  display: flex;
  gap: 4rem;
}

h1{
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 28px;
}

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 28px);
}

@media (min-width: 900px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.card{
  background: var(--card-bg);
  color: #241E30;
  border-radius: var(--radius-2xl);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  min-height: 320px;
  outline: none;
  padding: 30px;
}

.card:focus-visible{
  box-shadow: 0 0 0 4px #fff, 0 0 0 8px #00000040, var(--card-shadow);
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.card__inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3.2vw, 36px);
  align-items: center;
  height: 100%;
}

.card__inner--center{
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.card__brand {
  max-width: 300px;
}

.card__brand img, .card__brand svg {
  width: 100%;
  height: auto;
  display: block;
}

.centered {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.locations{
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  font-size: clamp(15px, 1.4vw, 18px);
}
.locations li{
  margin: .15em 0;
}

.desc{
  margin: 10px 0 0;
  text-align: center;
  color: #4b4b4b;
  font-weight: 600;
}

.btn {
    background: #fff;
    border-radius: 8px;
    padding-inline: 15px;
    padding-block: 10px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
