:root {
  --navy: #17325A;
  --blue: #3F8CE8;
  --tint: #EAF2FD;
  --gold: #F2994A;
  --white: #FFFFFF;
  --radius: 16px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}

h1, h2, h3 { font-family: "Merriweather", Georgia, serif; font-weight: 700; line-height: 1.25; margin: 0; }
p, address { margin: 0; font-style: normal; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  max-width: 100%;
  padding: 5rem 1.25rem 2rem;
}

.page > * { position: relative; z-index: 1; max-width: 46rem; margin-inline: auto; }

/* Decoration */
.page > .circle, .page > .bubbles { position: absolute; z-index: 0; max-width: none; margin: 0; }
.circle { border-radius: 50%; }
.circle--navy {
  width: 9rem; height: 9rem;
  top: -4.5rem; right: -4.5rem;
  background: var(--navy);
}
.circle--blue {
  width: 14rem; height: 14rem;
  bottom: -7rem; left: -7rem;
  background: var(--tint);
}

.dots { display: flex; gap: .5rem; justify-content: center; margin: 1rem 0 1.5rem; }
.dots i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--blue); }
.dots i:last-child { background: var(--gold); }

.bubbles { inset: 0; pointer-events: none; }
.bubbles span {
  position: absolute; bottom: -2rem;
  width: .75rem; height: .75rem;
  border: 2px solid var(--blue); border-radius: 50%;
  opacity: 0;
  animation: rise 14s linear infinite;
}
.bubbles span:nth-child(1) { left: 8%;  animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 22%; animation-delay: 5s; width: .5rem; height: .5rem; }
.bubbles span:nth-child(3) { left: 78%; animation-delay: 2.5s; }
.bubbles span:nth-child(4) { left: 90%; animation-delay: 8s; width: .5rem; height: .5rem; }
.bubbles span:nth-child(5) { left: 60%; animation-delay: 11s; }

@keyframes rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .25; }
  80%  { opacity: .15; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
}

/* Brand */
.brand { text-align: center; }
.logo { width: min(17.5rem, 80%); height: auto; }

/* Hero */
.hero { text-align: center; margin-top: 2.5rem; }
.hero h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
.hero p { max-width: 36rem; margin: 0 auto 1rem; }
.hero .lead { font-size: 1.1rem; font-weight: 500; }

.actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); }
.btn--outline { color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* Contact cards */
.contact { margin-top: 3rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.card h3 {
  width: fit-content;
  font-size: 1rem;
  margin-bottom: .35rem;
  padding-bottom: .15rem;
  border-bottom: 2px solid var(--gold);
}
.card a { text-decoration: none; overflow-wrap: anywhere; }
.card a:hover { text-decoration: underline; }

/* Social */
.social { text-align: center; margin-top: 3rem; }
.social h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.social__links { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.social__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-weight: 600; text-decoration: none;
  transition: background-color .2s;
}
.social__btn:hover { background: var(--blue); }

/* Footer */
.footer { text-align: center; margin-top: 3.5rem; font-size: .85rem; }

/* Tablet */
@media (min-width: 768px) {
  .page { padding: 6rem 2rem 2.5rem; }
  .circle--navy { width: 18rem; height: 18rem; top: -9rem; right: -9rem; }
  .circle--blue { width: 22rem; height: 22rem; bottom: -11rem; left: -11rem; }
  .logo { width: 20rem; }
  .actions { flex-direction: row; justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 1100px) {
  .circle--navy { width: 26rem; height: 26rem; top: -10rem; right: -10rem; }
  .circle--blue { width: 30rem; height: 30rem; bottom: -12rem; left: -12rem; }
}
