*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    font-size: 62.5%;
    scrollbar-color: #183158 #faf7f2;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Improves performance */
}

body {
    font-family: "Lato", sans-serif;
    color: #373535;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}
/* --------------------base---------------------------- */
.container {
    max-width: 1200px;
    min-height: 100vh;
    margin: auto;
    padding: 0 1rem;
}

@media screen and (min-width: 80em) {
    .container {
        padding: 0;
    }
}

.hidden,
.not-visible {
    display: none;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 4rem;
    color: #183158;
    line-height: 1;
    margin-bottom: 5rem;
    text-align: center;
}

h2 {
    font-size: 3rem;
    color: #183158;
    line-height: 1;
    margin-bottom: 5rem;
    /* text-align: center; */
}

h3 {
    font-size: 2.5rem;
    color: #183158;
    line-height: 1;
    margin-bottom: 5rem;
    text-align: center;
}

h4 {
    font-size: 16px;
}

p {
    font-size: 1.6rem;
    padding-bottom: 1rem;
}

li {
    list-style: none;
}

@media screen and (max-width: 37.5em) {
    .vbar {
        display: none;
    }
}

fieldset {
    border: none;
}

input,
textarea,
select {
    font-size: 1.5rem;
    font-family: inherit;
    color: inherit;
    padding: 1.5rem 2rem;
    border-radius: 2px;
    background-color: #fef7e9;
    border: none;
    border-bottom: 3px solid transparent;
    width: 90%;
    display: block;
    transition: all 0.3s;
}
@media only screen and (max-width: 47em) {
    input,
    textarea {
        width: 100%;
    }
}

label {
    font-weight: 600;
    margin-left: 2rem;
    margin-top: 0.7rem;
    display: block;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
@media screen and (max-width: 47em) {
    label {
        font-size: 1.6rem;
        text-align: left;
    }
}

.middleColumn input:placeholder-shown + label {
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(1rem);
    -moz-transform: translateY(1rem);
    -o-transform: translateY(1rem);
    -ms-transform: translate(1rem);
    transform: translateY(1rem);
}

.middleColumn .odd,
.middleColumn .even {
    margin: 1rem 0;
}

input:focus:focus-visible,
textarea:focus:focus-visible {
    outline: none;
}

input::-webkit-input-placeholder {
    color: #f9f7f6;
}

.Form {
    max-width: 80%;
    margin: auto;
}

.userform {
    width: 500px;
    margin: auto;
    font-size: 1.6rem;
}

.userform-group,
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset {
    margin-left: 2rem;
}

fieldset label {
    margin-top: -2rem;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}
@media screen and (max-width: 50em) {
    .fade-in {
        opacity: 1;
    }
}
.fade-in.appear {
    opacity: 1;
}
.fade-in0 {
    animation: fadein 1s backwards 10ms;
}
.fade-in1 {
    animation: fadein 2s backwards 400ms;
}
.fade-in2 {
    animation: fadein 2s backwards 800ms;
}
.fade-in3 {
    animation: fadein 2s backwards 1200ms;
}
.fade-in4 {
    animation: fadein 2s backwards 1600ms;
}
.fade-in5 {
    animation: fadein 2s backwards 2000ms;
}
.fade-in6 {
    animation: fadein 2s backwards 2400ms;
}
.fade-in7 {
    animation: fadein 2s backwards 2800ms;
}

.slide-from-left {
    animation: slidefromleft 1s ease-in 10ms;
}
@media screen and (max-width: 50em) {
    .slide-from-left {
        transform: translateX(0);
        opacity: 1;
        animation: none;
    }
}

.slide-from-right {
    animation: slidefromright 1s backwards 400ms;
}
@media screen and (max-width: 50em) {
    .slide-from-right {
        transform: translateX(0);
        opacity: 1;
        animation: none;
    }
}

@keyframes fadein {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes slidefromleft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slidefromright {
    0% {
        transform: translateX(115%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.from-left {
    transform: translateX(-100%);
}
@media screen and (max-width: 50em) {
    .from-left {
        transform: translateX(0);
    }
}

.from-right {
    transform: translateX(100%);
}
@media screen and (max-width: 50em) {
    .from-right {
        transform: translateX(0);
    }
}

.from-left,
.from-right {
    transition: transform 2s ease-in;
}
@media screen and (max-width: 50em) {
    .from-left,
    .from-right {
        transform: translateX(0);
    }
}

.from-left.appear,
.from-right.appear {
    transform: translateX(0);
}

select option {
    color: #183158;
}

input::focus-visible,
textarea::focus-visible {
    outline: none;
    border: none;
}

input:focus:invalid,
textarea:focus:invalid {
    border-bottom: 3px solid #f7af26;
}

input.radio {
    width: auto;
}

.field {
    width: 100%;
    margin-top: 2rem;
}

.buttons {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.btn,
.btn-toolbar {
    /* width: 100%; */
    display: block;
    background-color: #183158;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn.highlight,
.btn-toolbar {
    background-color: #f7af26;
    color: #183158;
}

.btn-toolbar {
    width: max-content;
    margin: 2rem auto;
}

.btn-toolbar .action {
    width: max-content;
    color: #183158;
    background-color: #f7af26;
    border: none;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.error {
    color: #d32f2f;
    font-weight: bold;
}

/* self-defined className 'errormessage' in UserDefinedForm */
.errormessage {
    margin-left: 2rem;
}
.errormessage .left {
    color: #f7af26;
}

.errormessage .middleColumn {
    font-style: italic;
}

/* --------------------header---------------------------- */
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #183158;
}

.logo {
    margin-right: 3rem;
}

nav {
    text-align: left;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

@media screen and (min-width: 50em) {
    nav {
        all: unset;
    }
}

.nav-toggle {
    display: none;
}

.nav-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

@media screen and (min-width: 50em) {
    nav li:first-child {
        margin-left: 0rem;
    }
}

@media screen and (min-width: 50em) {
    nav .nav-item {
        padding-top: 2rem;
        margin-bottom: 0;
        border-bottom: 0px;
    }
}

nav a {
    font-size: 1.8rem;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    color: #373535;
}

a.link {
    color: #183158;
    text-decoration: none;
    position: relative;
    opacity: 1;
}

a.link.current::before {
    content: "";
    display: block;
    height: 2px;
    background-color: #183158;
    position: absolute;
    opacity: 0;
    bottom: -0.25em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: all ease-in-out 250ms;
}

@media screen and (min-width: 50em) {
    nav a {
        position: relative;
        opacity: 1;
    }
}

a.link:hover::before {
    opacity: 1;
    transform: scale(1, 1);
}

@media screen and (min-width: 50em) {
    nav a::before,
    nav a.current::before {
        content: "";
        display: block;
        height: 2px;
        background-color: #f7af26;
        position: absolute;
        opacity: 0;
        bottom: -0.75em;
        left: 0;
        right: 0;
        transform: scale(0, 1);
        transition: all ease-in-out 250ms;
    }

    a:not(.logo):hover::before,
    a:not(.logo).current::before,
    a:not(.btn):hover::before,
    a:not(.btn).current::before {
        opacity: 1;
        transform: scale(1, 1);
    }
}

/* .nav-item.active a {
    background-color: #f7af26;
    padding: 2rem;
} */
/*
/* nav a.current {
    color: #f7af26;
} */
*/
/* --------------------main---------------------------- */
/* main {
  text-align: center;
} */

strong {
    font-weight: 600;
}
/* sections------------------------------------------------ */
section {
    margin: 5rem 0;
}
.hero h1 {
    margin-bottom: 2rem;
}
.hero h3 {
    margin-bottom: 3rem;
}

.hero h2 {
    padding: 0 4rem;
}

.hero-img {
    width: 500px;
}

.hero .center {
    width: max-content;
    margin: auto;
    margin-bottom: auto;
    color: #183158;
    margin-bottom: 3rem;
}

.hero .center-top {
    margin-bottom: 5rem;
}

.imgtext-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.imgtext .img-left {
    display: flex;
    width: 50%;
    margin-top: 7rem;
}

.imgtext .text-right {
    width: 50%;
    padding: 4rem;
    background-color: #ffffff;
    opacity: 0.9;
    margin-left: -3rem;
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.03);
}

.imgtext .text-right h2 {
    text-align: start;
}

.from-left.appear,
.from-right.appear {
    transform: translateX(0);
}

.from-left,
.from-right {
    transition: transform 2s ease-in;
}

.from-left {
    transform: translateX(-100%);
}

/* --------------------footer----------------------------- */
footer {
    background-color: #183158;
    color: white;
    padding: 4rem 8rem;
}

.contact-section,
.contact-footer {
    font-size: 1.7rem;
    font-weight: 600;
    display: flex;

    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-section {
    flex-direction: column;
}

.contact-footer {
    color: #ffffff;
}

.footer .email {
    margin-right: 3rem;
}

.footer .phone {
    margin-left: 3rem;
}

@media screen and (min-width: 80em) {
    .phone-mobile {
        display: none;
    }
}

@media screen and (min-width: 80em) {
    .phone-nonmobile {
        display: inline-block;
    }
}

.copyright {
    font-size: 1.4rem;
    margin-right: auto;
    margin-left: auto;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.copyright-year {
    margin-right: 1rem;
}

/*  Testimonials */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
    width: 100%;
}

/* Prevent cards from breaking across columns */
.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.stars {
    color: var(--star-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.quote {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0 0 1.25rem 0;
}

/* Highlight key scannable phrases */
.highlight {
    font-weight: 700;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent);
    object-fit: cover;
}

.details h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.details h5 {
    font-size: 1.05rem;
}

.details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Column Breaks */
@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.signature {
    font-family: "Segoe Script";
    font-size: 3rem;
    font-style: italic;
    text-align: right;
    padding: 3rem 10rem 5rem 0;
}

.imgtext-start.about {
    display: flex;
    justify-content: flex-start;
    align-items: self-start;
}
