/* WinningAds — base styles. Tokens + layout extracted from the live site. */

:root {
  --ink: #181d26;
  --body: #3f4247;
  --green: #33d185;
  --green-dark: #20ab68;
  --blue: #469df4;
  --purple: #8754fe;
  --pink: #e459aa;
  --bg-soft: #f1f5f9;
  --bg-hero: #f4f8fd;
  --white: #fff;
  --radius-pill: 100px;
  --radius-card: 24px;
  --z-nav: 10;
  --z-menu: 40;
  --z-consent: 60;
  --font-head: "Urbanist", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-nav: "Satoshi", "DM Sans", sans-serif;
  --font-hand: "Kalam", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: normal;
  margin: 0;
}

h1 {
  font-size: 62px;
  line-height: 1.1;
}

h2 {
  font-size: 50px;
  line-height: 1.3;
}

h3 {
  font-size: 40px;
  line-height: 1.4;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  padding: 12px 30px;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: #2fc47c;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #2a3140;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: #3990ef;
}

/* big CTA variant with the inset-shadow "3d" edge from the live site */
.btn-lg {
  padding: 13px 40px;
  font-size: 20px;
  line-height: 34px;
  box-shadow:
    var(--green-dark) 0 -2.4px 0 0 inset,
    rgba(32, 171, 104, 0.2) 0 1px 3px 2px;
}

.btn-lg:hover {
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 24px 40px 0;
}

.site-header .bar {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 12px 32px;
  box-shadow: rgba(24, 29, 38, 0.04) 0 2px 12px 0;
}

.site-header .logo img {
  width: 194px;
  height: 25px;
}

.site-header nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 16px;
  color: #120a0b;
}

.site-header nav a:hover {
  color: var(--purple);
}

.site-header .btn {
  padding: 12px 30px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-soft);
  padding: 60px 0 40px;
}

.site-footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .logo img {
  width: 230px;
  height: 30px;
}

.site-footer nav {
  display: flex;
  gap: 100px;
  font-size: 16px;
  color: var(--body);
}

.site-footer nav a:hover,
.site-footer .contact:hover {
  color: var(--ink);
}

/* ---------- Reveal on scroll (enhancement only) ---------- */

html.js .rv {
  opacity: 0.001;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 42px;
  }

  h3 {
    font-size: 34px;
  }
}

@media (max-width: 809px) {
  h1 {
    font-size: 40px;
    line-height: 1.2;
  }

  h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 24px;
  }

  .site-header {
    padding: 0;
  }

  .site-header .bar {
    border-radius: 0;
    padding: 12px 20px;
    box-shadow: none;
  }

  .site-header .logo img {
    width: 171px;
    height: 22px;
  }

  .site-header nav,
  .site-header .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* mobile menu panel */
  .site-header.open nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 8px 20px 16px;
    z-index: var(--z-menu);
    box-shadow: rgba(24, 29, 38, 0.08) 0 12px 24px -8px;
  }

  .site-header.open nav a {
    padding: 12px 0;
  }

  .site-footer .row {
    flex-direction: column;
    text-align: center;
    gap: 35px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 35px;
  }
}
