@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-Medium-Trial.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a2c5b;
  --ink-dark: #0f214a;
  --accent: #2d4a86;
  --gold: #d6b07a;
  --border: #e5dccb;
  --btn-olive: #35623f;
  --btn-olive-dark: #274c31;
  --bg: #FCFCFC;
  --footer-start-offset: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 28px 0 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mobile-hero {
  width: 100%;
  position: relative;
}

.scroll-arrow {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 54px;
  height: 28px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.scroll-arrow svg {
  width: 54px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-logo {
  display: none;
  margin-bottom: 18px;
}

.content-logo img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Canela", serif;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.logo img {
  width: 200px;
  height: auto;
  display: block;
}

.title {
  margin: 34px 0 36px;
  font-family: "Canela", serif;
  font-size: clamp(25px, 4vw, 36px);
  color: var(--ink);
  font-weight: 800;
  font-synthesis: weight;
  text-shadow: 0 0 0.6px currentColor;
  line-height: 1.1;
  -webkit-text-stroke-width: 1px;
  stroke-width: 1px;

}


/**/

h1 span {
    position: relative
}

h1 span.header-line {
    display: inline-block
}

h1 span.header-line:before {
    content: "";
    background-repeat: no-repeat;
    background-position: bottom left;
    position: absolute;
    background-size: 100%;
    left: -5%;
    bottom: -5px;
    z-index: -1;
    width: 110%
}

h1 span.header-line:after{
    width: 110%;
    background: #fff;
    position: absolute;
    left: -5%;
    bottom: -5px;
    transform-origin: 100% 50%;
    z-index: -1;
    animation: .65s ease-out .25s forwards drawLine
}

h1 span.line-1:after,h1 span.line-1:before{
    left: 0;
    bottom: -5px;
    width: 100%
}

@media screen and (min-width: 48rem) {
    h1 span.line-1:after,h1 span.line-1:before{
        left:-5%;
        width: 110%;
        bottom: -8px
    }
}

h1 span.line-1:before{
    background-image: url(../images/header-line-mobile.svg);
    height: 25px
}

@media screen and (min-width: 36rem) {
    h1 span.line-1:before{
        background-image:url(../images/header-line.svg)
    }
}

h1 span.line-1:after{
    content: "";
    height: 15px
}

@media screen and (min-width: 48rem) {
    h1 span.line-1:after{
        height:15px
    }
}

@keyframes drawLine {
    0% {
        transform: scaleX(1)
    }

    100% {
        transform: scaleX(0)
    }
}

/**/
.text-paragraph {
  font-size: clamp(16px, 2vw, 15px);
  max-width: 760px;
  margin: 0 auto 12px;
  color: #1b2f5c;
  text-align: justify;
  font-weight: 500;
}

.section-title {
  margin: 30px 0 8px;
  font-family: "Canela", serif;
  font-size: clamp(22px, 3.6vw, 28px);
  color: var(--ink);
  font-weight: 800;
  font-synthesis: weight;
  text-shadow: 0 0 0.6px currentColor;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  justify-content: center;
  max-width: 520px;
  margin: 30px auto 18px;
}

.card {
  padding: 14px 16px 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
  color: var(--ink);
}

.btn {
    display: inline-block;
    padding: 4px 23px;
    border: 1px solid #d3c0a0;
    color: var(--ink);
    text-decoration: none;
    font-family: "Canela", serif;
    font-weight: 600;
    font-size: 18px;
    background: transparent;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
    -webkit-text-stroke-width: .5px;
    stroke-width: .5px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-olive);
  color: #fff;
  border-color: var(--btn-olive-dark);
}

.illustration {
  width: 100%;
  margin-top: -320px;
  position: relative;
  z-index: 0;
}

.footer-image {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bottom {
  width: 100%;
  background: #0d1f44;
  color: #f4f6fb;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.footer-bottom__inner {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 10px 0 12px;
  text-align: left;
}

.footer-bottom__inner p {
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .mobile-hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }

  .mobile-hero .container {
    padding-top: 0;
  }

  .scroll-arrow {
    display: inline-flex;
    bottom: 24px;
  }

  .content-logo {
    display: block;
  }

  .page.mobile-scrolled .mobile-hero {
    display: none;
  }

  .content .container {
    padding-top: 20px;
  }

  .illustration {
    margin-top: -58px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    padding: 10px 8px 12px;
  }

  .good-underline::after {
    height: 18px;
    background-image: url("../images/header-line-mobile.svg");
  }

  :root {
    --footer-start-offset: 10px;
  }

  .footer-bottom__inner {
    text-align: center;
  }
}

.mobile-only {
  display: none;
}
@media only screen and (min-width:768px) {
  #content > .container {
      padding-top: 0;
  }
}


@media only screen and (max-width:767px) {
  .mobile-only {
    display: block;
  }
  .logo img {
      width: 150px;
  }
  .mobile-hero .title {
    margin: 10px 0 36px;
  }
  .title {
    margin-bottom: 25px;
    margin-top: 25px;
  }  
  h1 span.line-1:after, h1 span.line-1:before {
      left: 0;
      bottom: -4px;
      width: 100%;
  }
  .container {
      width: min(980px, 79vw);
  }

  .text-paragraph {
      font-size: clamp(13px, 2vw, 15px);
      line-height: 15px;
  }
  .cards {
      margin: 25px auto 18px;
  }
  .btn {
      padding: 4px 15px;
      font-size: 15px;
  }
  .card h3 {
      margin: 0 0 4px;    
      font-size: 10px;
  }
  .footer-bottom__inner {
      padding: 8px 0 8px;
  }

  .footer-bottom__inner p {
      font-size: 8px;
  }  
  .footer-image {
      min-height: 290px !important;
  }


}

@media only screen and (max-width:375px) {
  .title {
      font-size:24px;
  }
}
