/* Critical homepage CSS: only the header, navigation, hero and first-paint typography. */
:root {
  --carbon: #171a17;
  --mineral-teal: #416b69;
  --logo-green: #00a800;
  --ash-grey: #929a92;
  --natural-bone: #f3f1e8;
  --ink: var(--carbon);
  --paper: var(--natural-bone);
  --moss: var(--mineral-teal);
  --clay: var(--logo-green);
  --line: rgba(146, 154, 146, .42);
  --sans: "Barlow", Arial, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --silvachar-body-font: var(--sans);
  --silvachar-heading-font: var(--condensed);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--natural-bone);
  color: var(--carbon);
  font-family: var(--silvachar-body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }

html body h1,
html body h2,
html body h3,
html body h4 {
  margin-top: 0;
  font-family: var(--silvachar-heading-font) !important;
  font-weight: 700 !important;
  text-wrap: balance;
}
html body h1 { line-height: .9; letter-spacing: -.04em; }

html body :is(.button, .nav-cta, .hero-calculator-arrow, button[type="submit"], input[type="submit"]) {
  font-family: var(--silvachar-heading-font) !important;
  font-weight: 700 !important;
}
html body :is(button, .button, .nav-cta, [role="button"]) { cursor: pointer; }
html body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #00a800;
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  z-index: 3;
  width: 100%;
  padding: 25px 0;
  color: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--condensed);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand-logo-frame {
  position: relative;
  display: block;
  width: clamp(11.25rem, 17vw, 14.5rem);
  aspect-ratio: 4.04 / 1;
  overflow: hidden;
}
.brand-logo-frame img {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .34));
}
.header-canada-flag {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: clamp(1.15rem, 1.6vw, 1.45rem);
  aspect-ratio: 2 / 1;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .28));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-family: var(--condensed);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .025em;
}
.nav-links a:hover { color: var(--logo-green); text-decoration: underline; }
.nav-links .nav-cta,
.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--logo-green);
  color: #fff;
  font-family: var(--condensed);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .025em;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.nav-links .nav-cta,
.hero .button { background: var(--logo-green); color: #fff; font-size: 1.2rem; }
.button:hover,
.nav-links .nav-cta:hover {
  background: var(--logo-green);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-links .nav-contact {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 17px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.nav-links .nav-contact:hover,
.nav-links .nav-contact:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #10251f;
  text-decoration: none;
}
.nav-toggle { display: none; }

.hero {
  display: flex;
  min-height: 760px;
  padding: 7.5rem 0 70px;
  align-items: flex-end;
  background-image:
    linear-gradient(90deg, rgba(5, 17, 13, .88) 0%, rgba(5, 17, 13, .70) 52%, rgba(5, 17, 13, .3) 100%),
    url("images/silvachar-hero.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.eyebrow,
.kicker {
  font-family: var(--condensed);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 1100px;
  margin: 18px 0 25px;
  font-family: var(--condensed);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 700;
  line-height: .83;
  letter-spacing: -.035em;
}
.hero.hero-approved > .wrap > p {
  max-width: 740px;
  margin: 0 0 26px;
  color: #fff !important;
  font-size: clamp(1.25rem, 1.75vw, 1.5rem) !important;
  font-weight: 500;
  line-height: 1.58 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
}
.hero.hero-approved > .wrap > p strong { font-weight: 700; }
.hero.hero-approved .button[data-calculator-open] {
  position: relative;
  display: inline-flex;
  margin-right: 78px;
  padding-right: 18px;
  align-items: center;
  overflow: visible;
}
.hero.hero-approved .button[data-calculator-open]::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 18px);
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #00a800 url("images/ui/carousel-arrow-compact.png") center / 108% 108% no-repeat;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .2);
  content: "";
  transform: translate(0, -50%) rotate(180deg);
  transform-origin: center;
  animation: silvachar-hero-arrow-pulse 1.35s ease-in-out infinite;
  pointer-events: none;
}
@keyframes silvachar-hero-arrow-pulse {
  0%, 100% { transform: translate(0, -50%) rotate(180deg); }
  50% { transform: translate(-6px, -50%) rotate(180deg); }
}

@media (min-width: 1121px) {
  .site-header .nav-links { gap: 14px; font-size: .96rem; }
  .site-header .nav-links .nav-contact,
  .site-header .nav-links .nav-cta { padding-right: 14px; padding-left: 14px; }
}
@media (min-width: 761px) and (max-width: 1120px) {
  .site-header .nav-links { gap: 13px; font-size: .94rem; }
  .site-header .nav-links .nav-contact,
  .site-header .nav-links .nav-cta { padding-right: 14px; padding-left: 14px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  html body h1,
  html body h2,
  html body h3,
  html body h4 { text-wrap: pretty; }
  .brand-logo-frame { width: 10.75rem; }
  .header-canada-flag { height: 1.1rem; }
  .site-header { z-index: 50; padding-top: 1rem; }
  .site-header .nav { position: relative; }
  .hero { min-height: 650px; padding-top: 6.5rem; }
  .hero h1 { font-size: clamp(3.15rem, 14vw, 5rem); line-height: .82; }
  .hero.hero-approved > .wrap > p { font-size: 1.2rem !important; line-height: 1.55 !important; }
  .hero.hero-approved .button[data-calculator-open] {
    max-width: calc(100vw - 80px);
    margin-right: 58px;
    padding: 11px 15px;
    font-size: clamp(.86rem, 4.2vw, 1.05rem);
    line-height: 1.05;
    white-space: normal;
  }
  .hero.hero-approved .button[data-calculator-open]::after {
    left: calc(100% + 10px);
    width: 44px;
    height: 44px;
  }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(15, 28, 23, .58);
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .nav-links {
    position: absolute;
    top: calc(100% + .75rem);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 6.5rem);
    padding: .75rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 1rem;
    background: rgba(15, 28, 23, .98);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .32);
  }
  .site-header .nav-links.is-open { display: flex; }
  .site-header .nav-links a,
  .site-header .nav-links .nav-contact,
  .site-header .nav-links .nav-cta {
    display: flex !important;
    min-height: 46px;
    padding: .72rem 1rem;
    align-items: center;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: #fff;
    font-size: 1.08rem;
  }
  .site-header .nav-links a:hover,
  .site-header .nav-links a:focus-visible {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
  }
  .site-header .nav-links .nav-cta {
    justify-content: center;
    margin-top: .25rem;
    background: #00a800;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-links .nav-contact,
  .nav-toggle span { transition: none; }
  .hero.hero-approved .button[data-calculator-open]::after { animation: none; }
}
