:root {
  /* Default mode */
  color-scheme: light;

  /* Brand tokens (provided by renderer) */
  /* --color-primary: #ffc65c */
  /* --color-background: #fff3dd */

  /* Template tokens */
  --color-text: #111;
  --color-border: #5d4a27;

  --border-radius: 1rem;
  --border-width: 1px;
  --border: var(--border-width) solid var(--color-border);

  /* Fonts */
  --font-family: Roboto, arial, sans-serif;
  --font-weight: 300;
  --font-weight-strong: 500;
  --font-size: 1.125rem;
  --font-size-ipad: 1.25rem;
  --line-height: 1.5;
  --letter-spacing: 0.02em;
  --font-heading: "Quicksand", arial, sans-serif;
  --font-heading-weight: 500;

  /* Layout */
  --grid-max-width: 840px;
  --grid-padding: 1.25rem;

  @media (min-width: 1440px) {
    --grid-max-width: 1300px;
  }
}

/* Apply dark mode if requested */
html.dark {
  color-scheme: dark;

  /* Brand tokens (provided by renderer) */
  /* --color-primary: #151515 */
  /* --color-background: #2d2d2d */

  /* Template tokens */
  --color-text: #ededed;
  --color-border: #b9b9b9;
}


/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('/shared/fonts/roboto/roboto-v51-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('/shared/fonts/roboto/roboto-v51-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('/shared/fonts/roboto/roboto-v51-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('/shared/fonts/roboto/roboto-v51-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  src: url('/shared/fonts/quicksand/quicksand-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  src: url('/shared/fonts/quicksand/quicksand-v37-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  src: url('/shared/fonts/quicksand/quicksand-v37-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  src: url('/shared/fonts/quicksand/quicksand-v37-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.25;
  margin-bottom: 0.15em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  aside h2,
  h3 {
    font-size: 1.75rem;
  }
}

a {
  color: var(--color-text);
  text-underline-offset: 0.25em;
  position: relative;
}

a:not(.social-link)[target="_blank"] {
  padding-right: 1.2em;
}

a:not(.social-link)[target="_blank"]::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: calc(50% - 0.55em);
  right:0;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("/shared/icons/external-link.svg") center / contain no-repeat;
}

@media (hover: hover) {
  a:not(.button):hover {
    text-decoration: underline;
  }
}

strong, b {
  font-weight: var(--font-weight-strong);
}

p:not(:last-of-type) {
  margin-bottom: 1rem;
}

pre {
  white-space: pre-line;
  font-family: var(--font-family);
  margin-bottom: 3rem;
}


* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  word-wrap: break-word;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

*:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: 0.25rem;
  background-color: var(--color-background);
  box-shadow: 0 0 0 0.25rem var(--color-background);
}

img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
}

nav ul {
  list-style: none;
}

/* Accessibility */
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; /* no smooth scrolling */
  }

  *,
  *::before,
  *::after {
    animation: none;
    transition: none;
  }
}


html {
  color-scheme: dark light;
  min-height: 100%;
  width: 100%;
  min-width: 320px;
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  position: relative; 
  width: 100%;
  min-height: 100svh;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  body {
    font-size: var(--font-size-ipad);
  }
}

main {
  transform: translateZ(0);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

section {
  width: 100%;
  max-width: var(--grid-max-width);
  padding-inline: var(--grid-padding);
  margin-inline: auto;
}

aside {
  background-color: var(--color-primary);
  padding-block: 2rem 1rem;
}

main aside .content {
  padding: 0;
  display: grid;
  gap: 2rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
}

.main-content section {
  margin-bottom: 2rem;
}

main.is-loading {
  opacity: 0.99; /* forces stable compositing */
}

.content {
  width: 100%;
  max-width: var(--grid-max-width);
  padding-inline: var(--grid-padding);
  margin-inline: auto;
}


@media (min-width: 768px) and (max-width: 1439px ) {
  main aside .content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1440px) {

  .layout {
    margin: 0 auto;
    width: var(--grid-max-width);
    display: grid;
    grid-template-columns: 800px 400px;
    justify-content: space-between;
    align-items: start;
  }

  aside {
    position: sticky;
    top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
  }

  section,
  .content {
    padding-inline: 0;
  }
}

@media screen and (max-width: 767px) {
  html .hide-on-mobile {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  html .hide-on-ipad {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  html .hide-on-desktop {
    display: none;
  }
}

@media print {
  
  html, body {
    width: 210mm;
    height: 297mm; 
    height: auto;
  }
  
  body{
    background-color: #fff;
    background: #fff;
    display: unset;
  }

  * {
    line-height: 1.4;
    color: #000;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  body::before, header, footer, nav, .a4:after {
    display: none !important;
  }

  img {
    page-break-before: always;
  }
  
  main {
    position: relative;
    width: 210mm;
    height: 296.85mm;
    padding: 20mm;
    width: 794px;
    height: auto;
    min-height: auto;
    padding: 77px;
    padding: 20px;
    margin: 0;
    overflow: hidden;
    background: #fff;
    display: unset;
    
    .content {
      padding: 0;
      max-width: 100%;
      display: unset;
    }
  }
}


.button {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  background-color: var(--color-primary);
  text-decoration: none;
  border: var(--border-width) solid transparent;
  border: var(--border);
}

@media (hover: hover) {
  .button:hover {
    border: var(--border);
  }
}

ul.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 0.5rem;
}

.services > p + ul.cards {
  padding-top: 0;
}

ul.cards li {
  padding: 1.25rem 1.75rem 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--color-primary);
}

ul.cards + p {
  margin-top: 1rem;
}

@media screen and (min-width: 768px) {
  ul.cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  ul.cards li {
    padding: 1.5rem 2rem 1.75rem;
  }
}

.contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.contact ul li {
  margin-block: 0.5rem;
}

.contact a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.5rem;
  margin-block: -0.5rem;
}

.contact address {
  font-style: normal;
}

.contact strong {
  font-family: var(--font-heading);
  font-weight: bold;
}

footer {
  transform: translateZ(0);
  width: 100%;
  background-color: var(--color-primary);
  box-sizing: content-box;
  color: var(--color-text);
  font-size: 1.125rem;
  text-align: left;
  padding: 1.5rem 0;
}

footer .copyright {
  display: grid;
  place-content: center start;
}

footer .content {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 1440px) {
  footer .content {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media screen and (max-width: 800px) {
  .hero {
    padding-inline: 0;
  }
}

.hero-content {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 2rem var(--grid-padding) 3rem;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (min-width: 768px) {
  .hero-content {
    aspect-ratio: 16 / 9;
    padding: 4rem 4rem 0;
  }
}

@media screen and (min-width: 800px) {
  .hero-content {
    border-radius: var(--border-radius);
  }
}

.hero .button {
  margin-top: 1rem;
}

@media screen and (min-width: 1440px) {
  .hero .button.internal {
    display: none;
  }
}

.image-wrapper {
  aspect-ratio: 16 / 9;
  display: block;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.logo {
  display: flex;
}

.logo a {
  display: flex;
  width: 100%;
  max-width: var(--grid-max-width);
  padding: 1rem var(--grid-padding);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .logo a {
    padding: 2rem var(--grid-padding);
  }
}

@media (min-width: 1440px) {
  .logo a {
    padding: 2rem 0;
  }
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

html.dark .logo img {
  filter: invert();
}

.social-media {
  --social-media-padding: 8px;
  display: grid;
  place-content: center start;
  padding-inline: 0;
}

.social-media ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--social-media-padding) * -1);
}

.social-media ul li a {
  aspect-ratio: 1/1;
  display: grid;
  place-content: center;
  padding: var(--social-media-padding);
  border: var(--border-width) solid transparent;
}

@media (hover: hover) {
  .social-media ul li a:hover {
    border: var(--border);
    border-radius: var(--border-radius);
    /*background-color: var(--color-background); */
  }
}

.social-media ul li a svg {
  width: 32px;
}

table {
  border-spacing: 0;
  margin: 1rem 0;
  
  td, th {
    border: var(--border);
    border-right: 0;
    border-bottom: 0;
    padding: 3px 10px;
    
    &:last-child {
      border-right: var(--border);
    }
  }
  
  tr:last-child {
    
    td, th {
      border-bottom: var(--border);
    }
  }
}
