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

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

@font-face {
  font-family: "CanvaSans";
  src: url("/fonts/CanvaSans-Bold.woff2") format("woff2");
  font-weight: 700; /* bold */
  font-style: normal;
  font-display: swap;
}

html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: "CanvaSans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.nav-wrapper {
  width: 100%;
}

nav {
  display: flex;
  max-width: 1200px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4em;
  font-size: 110%;
  font-weight: 500;
}

.subtitle {
  display: none;
}

@media screen and (min-width: 768px) {
  nav {
    font-size: 120%;
    font-weight: 500;
  }

  .subtitle {
    display: block;
  }
}

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

nav .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space between icon and text */
}

nav .brand::before {
  content: "";
  display: inline-block;
  width: 32px; /* or 32px to match your favicon */
  height: 32px;
  background-image: url("/assets/favicon-32.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background-image:
    linear-gradient(
      100deg,
      rgb(1 17 40 / 82%),
      rgb(1 17 40 / 52%) 47%,
      rgb(1 17 40 / 8%) 88%
    ),
    linear-gradient(180deg, rgb(1 17 40 / 56%), transparent 30%),
    url("/assets/melbourne-aerial.webp");
  background-position: center;
  background-size: cover;
}

.hero-header,
.hero-main {
  width: min(100% - 2 * clamp(1.5rem, 7vw, 7rem), 88rem);
  margin-inline: auto;
}

.hero-header {
  padding-block: clamp(1.6rem, 4vh, 2.75rem);
}

.logo {
  display: inline-block;
  width: clamp(10rem, 17vw, 14rem);
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 10vh, 8rem);
}

.hero-copy {
  max-width: 46rem;
}

.hero-copy h1 {
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 28rem;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}

.cta {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-navy);
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover {
  background-color: var(--color-bronze);
}

.logo:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--color-bronze);
  outline-offset: 3px;
}

@media (max-width: 42rem) {
  .hero {
    background-image:
      linear-gradient(
        180deg,
        rgb(1 17 40 / 55%),
        rgb(1 17 40 / 70%) 48%,
        rgb(1 17 40 / 78%)
      ),
      url("/assets/melbourne-aerial.webp");
    background-position: 64% center;
  }
}

.features {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: 2em;
  padding: 2rem;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 0 auto; /* centers the whole ul */
  text-align: left; /* keeps text left-aligned */
  width: fit-content; /* shrink to content width */

  font-size: 1.5em;
}

.features li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}

.features li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}

.legal {
  margin-top: 10rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.legal a {
  font-size: small;
  color: var(--color-bronze);
  text-decoration: none;
}
