@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --body-font: "DM Sans", sans-serif;
  --heading-font: "Inter", sans-serif;

  --cta: #1a67cc;
  --cta-hover: #14509f;
  --dark: #333;
  --grey: #4d4d4d;
  --light-blue: #e5eef8;
  --teal: #18d6c4;
  --tan: #f4eed7;
  --bg: #fffcf0;

  --border-radius-sm: 0.5rem;
  --border-radius-md: 1.5rem;
  --border-radius-lg: 2rem;

  --hero-gradient: linear-gradient(
    156deg,
    #1b66cc 0%,
    #3e7ed8 60%,
    #6499dd 100%
  );
}

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

html {
  font-size: 62.5%;
}
@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 55%;
  }
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 16px 0;
  text-wrap: pretty;
}

h1 {
  font-size: 6.4rem;
}
h2 {
  font-size: 4.6rem;
}
h3 {
  font-size: 3.2rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 5rem;
  }
  h2 {
    font-size: 3.8rem;
  }
}

p {
  margin: 0 0 1em 0;
  line-height: 1.5;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cta);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.margins-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .margins-container {
    width: 92%;
  }
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--cta);
  color: #fff;
  border-radius: 100em;
  padding: 0.7em 1.8em;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 2rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: var(--cta-hover);
  text-decoration: none;
}
.button.teal {
  background-color: var(--teal);
  color: var(--dark);
}
.button.teal:hover {
  background-color: #13a89a;
}
.button.light {
  background-color: #fff;
  color: var(--dark);
}
.button.light:hover {
  background-color: #ececec;
}

/* Header */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .margins-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--cta);
  letter-spacing: -0.02em;
}
.site-header .logo:hover {
  text-decoration: none;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav a.nav-link {
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--dark);
}
.site-header nav a.button {
  font-size: 1.7rem;
}
@media (max-width: 600px) {
  .site-header nav {
    gap: 18px;
  }
  .site-header nav a.nav-link:not(.always) {
    display: none;
  }
}

/* Hero */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
}
.hero h1 {
  color: #fff;
  max-width: 800px;
  margin: 0 auto 24px auto;
}
.hero .strapline {
  font-size: 2.4rem;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 16px auto;
}
.hero .strapline:last-of-type {
  margin-bottom: 32px;
}

/* Generic section */
.section {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}
.section.tan {
  background: var(--tan);
}
.section.light-blue {
  background: var(--light-blue);
}

.body-content {
  max-width: 740px;
}
.body-content.center {
  margin: 0 auto;
  text-align: center;
}
.body-content p {
  font-size: 2rem;
  margin: 0 0 1.2em 0;
}
.body-content h2 {
  color: var(--cta);
}

/* Embed area */
.embed-section {
  padding: 60px 0 90px 0;
}
.embed-card {
  background: #fff;
  border: 1px solid var(--cta);
  border-radius: var(--border-radius-md);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.06);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.embed-card iframe {
  width: 100%;
}
@media (max-width: 480px) {
  .embed-card {
    padding: 24px;
  }
}
.embed-placeholder {
  border: 2px dashed #a5c7f4;
  border-radius: var(--border-radius-sm);
  padding: 48px 24px;
  text-align: center;
  color: var(--grey);
  font-size: 1.7rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0;
  margin-top: 20px;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.site-footer .footer-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer p {
  font-size: 1.6rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.site-footer p + p {
  margin-top: 4px;
}
