/*
Theme Name: Notariat Onepager Theme
Author: Ruhm etc.
Description: Notariat Onepager theme built from scratch.
Version: 1.0
*/

/* Styles */
:root {
  /* Colors */
  --ice-blue: #dde5f0;
  --white: #ffffff;
  --light: #dedede;
  --black: #000000;

  /* Font Styles */
  .h1,
  h1 {
    font-weight: 500;
    font-size: 110px;
    line-height: 100%;
    margin-bottom: 30px;
    margin-top: 0;
  }

  .h2,
  h2 {
    font-weight: 500;
    font-size: 70px;
    line-height: 100%;
    margin-bottom: 30px;
    margin-top: 0;
  }

  .h3,
  h3 {
    font-weight: 500;
    font-size: 28px;
    line-height: 120%;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .h4,
  h4 {
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    margin-bottom: 15px;
    margin-top: 0;
  }

  .copy,
  p,
  span,
  input,
  select,
  textarea,
  button,
  li {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    margin-bottom: 30px;
  }

  .copy.medium {
    font-weight: 500;
  }

  .small {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
  }

  .nav {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    margin-bottom: 30px;
  }

  .logo-font {
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
  }
  .logo-font.small {
    font-size: 24px;
  }

  .button,
  .li-button a,
  button {
    padding: 10px 15px;
    background-color: var(--ice-blue);
    border: 1px solid var(--light);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }
  .button:hover,
  .li-button a:hover,
  button:hover {
    background-color: unset;
  }

  .button.outlined {
    background-color: unset;
  }
  .button.outlined:hover {
    background-color: var(--ice-blue);
  }

  .bg-blue .button {
    border: 1px solid var(--black);
  }

  .bg-blue .button:hover {
    background-color: var(--black);
    color: var(--white);
  }

  @media screen and (max-width: 1440px) {
    h1,
    .h1 {
      font-size: 80px;
      line-height: 100%;
      margin-bottom: 30px;
    }
  }

  @media screen and (max-width: 834px) {
    .h1,
    h1 {
      font-size: 48px;
      line-height: 110%;
      margin-bottom: 20px;
    }

    .h2,
    h2 {
      font-size: 36px;
      line-height: 100%;
      margin-bottom: 15px;
    }

    .h3,
    h3 {
      font-size: 22px;
      line-height: 120%;
      margin-bottom: 15px;
    }

    .h4,
    h4 {
      font-size: 20px;
      line-height: 120%;
      margin-bottom: 10px;
    }

    .copy,
    p,
    span,
    input,
    select,
    textarea {
      font-size: 18px;
      line-height: 160%;
      margin-bottom: 30px;
    }
  }
}

/* --- Basic Reset & Typography --- */
body,
html {
  /* scroll-behavior: auto; */
}

body,
html,
textarea,
input,
select,
button,
label {
  font-family: "halyard-text", sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  color: var(--black);
  padding: 0;
  margin: 0;
}

strong {
  font-weight: 500;
}

li {
  margin-bottom: unset !important;
}

/* --- Layout --- */
.container {
  margin: 0 auto;
  border-radius: 5px;
  max-width: 1440px;

  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}
.container.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero {
  padding-top: 150px;
}

@media screen and (max-width: 1440px) {
  .container {
    padding: 0 25px;
  }

  .hero {
    padding-top: 130px;
  }
}

@media screen and (max-width: 834px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 120px;
  }
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--light);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .logo {
  height: 80px;
  width: auto;
}

.footer-navigation {
  margin: 0;
  padding: 0;
}
.footer-navigation li {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer-menu {
  display: flex;
  gap: 20px;
  padding: 0;
}

.site-footer .main-navigation {
  display: flex;
}

@media screen and (max-width: 834px) {
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  #footer-menu {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
}

/* Page Layouts */
.container:has(.half-container) {
  border-bottom: 1px solid var(--light);
}

.half-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

section {
  scroll-margin-top: 90px;
}
#Hero {
  scroll-margin-top: 200px !important;
}

section:not(.main-hero) {
  padding: 80px 0;
  border-top: 1px solid var(--light);
}

.half-container .half:last-child {
  margin-left: auto;
}

.half {
  width: 50%;
}

@media screen and (max-width: 1000px) {
  section:not(.main-hero) {
    padding: 70px 0;
  }

  .half-container h2,
  .half-container h1 {
    margin-bottom: 0;
  }

  .half-container {
    gap: 20px;
  }

  .half-container .half:last-child {
    margin-left: 0;
  }

  .half {
    width: 100%;
  }
}

@media screen and (max-width: 834px) {
  section:not(.main-hero) {
    padding: 40px 0;
  }
}

/* --- Blocks --- */

.grid {
  display: grid;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.grid.three > div {
  width: 100%;
}
.grid.three img {
  display: block;
  width: 100%; /* fill the grid cell */
  height: auto; /* keep aspect ratio */
  object-fit: cover; /* optional if you want uniform crops */
}

.grid.start {
  max-width: 1440px;
  margin: auto;
  margin-bottom: 40px;
}

.grid.start > div {
  background-color: var(--ice-blue);
  border-radius: 5px;
}

@media screen and (max-width: 1000px) {
  .grid.responsive {
    grid-template-columns: repeat(1, 1fr);
    gap: 25px !important;
  }
}

@media screen and (max-width: 1440px) {
  .grid.start > div:nth-child(3n) {
    border-radius: 5px 0 0 5px;
  }

  .grid.start > div:nth-child(3n + 1) {
    border-radius: 0 5px 5px 0;
  }
}

.bg-blue {
  background-color: var(--ice-blue);
}
.footer-teaser {
  padding: 60px inherit;
}

/* Spacings */
.gap-10 {
  gap: 10px !important;
}

/* Page Specific */
.main-hero {
  padding-bottom: 60px;
}

@media screen and (max-width: 1000px) {
  .main-hero {
    padding-bottom: 20px;
  }
}

.main-hero h1 {
  margin-bottom: 0;
}

.full-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* Equivalent to inset-0 */
  display: flex;
}

/* 404 Page */
.notfound {
  height: 80vh;
}
