/**CSS reset **/
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/**CSS Reset end**/

:root {
    --accent: #ff6a00;
    --accent-100: #fff9f5;
}

body {
    font-family: system-ui, sans-serif;
    font-weight: normal;
    margin: 0;
}

header {
    max-height: 100vh;
    height: 70vh;
    width: 100%;
    position: relative;
}

header .top-banner {
    position: absolute;
    color: #fff;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    background-color: #00000080;
    height: 100%;
}

header .top-banner .banner-inner {
    width: min(1600px, 80%);
    display: flex;
    justify-content: space-between;
    margin:auto;
    flex-wrap: wrap;
}

header .top-banner .banner-inner a {
    display: flex;
    gap: 0.25rem;
    font-weight: bold;
}


header .banner-inner {
    height: 100%;
}

header .banner-inner>div {
    width: 100%;
}

header .banner-inner h1 {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 400;
    white-space: nowrap;
}

header .banner-inner h2 {
    font-size: 1rem;
}

header .banner-inner h1 b {
    font-weight: bolder;
}

header .banner-title {
    margin-left: auto;
    margin-right: auto;
}

header picture {
    max-height: inherit;
    display: block;
    height: inherit;
    width: inherit;
}

header img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 10% 30%;
}

header .container {
    width: 100%;
    position: absolute;
    top: 60%;
}


.c {
    text-align: center;
    margin: auto;
}

.container {
    margin-block: 4rem;
    padding-block: 2rem;
}

.container>*{
    max-width: min(1200px,80%);
    margin: auto;
}

.container.shaded{
    background-color: #fff9f5;
}

.stacked .flex-box {
    margin-block: 4rem;
}

.stacked .flex-box>.text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-box .img {
    width:auto;
    max-width: 100%;
}


main p {
    text-align: justify;
    text-wrap: pretty;
    color: #333;
    line-height: 1.4rem;
}

main small {
    text-align: left;
    display: inline-block;
    width: 100%;
}

main h3 {
    font-size: 1.5rem;
}

section>h2.c {
    margin-block: 2rem;
}

.flex-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6rem;
}

.flex-box.reversed {
    flex-direction: row;
}

.flex-box>* {
    flex-basis: 100%;
}

.flex-box summary {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.flex-box details summary::after {
    content: "Read more";
    cursor: pointer;
    color: var(--accent);
}

.flex-box details[open] summary::after {
    content: "";
}

.flex-box details[open] summary {
    cursor: unset;
}

.flex-box div:has(picture) {
    flex-grow: 1;
}

main h1 {
    font-size: 2rem;
}

main h2 {
    /* margin: 1rem; */
    font-size: 1.5rem;
}

.testimonial-boxes {
    display: flex; 
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.testimonial-boxes h3 {
    margin-bottom: 0.5rem;
}

.testimonial-boxes>div{
    flex-basis: 30%;
    padding: 1rem;
    background-color: #fff0e6;
    border-radius: 15px;
    min-width: 300px;
    flex-grow: 1;
}

.testimonial-boxes .profile {
    display: inline-block;
    height: 24px;
}

.testimonial-boxes .profile img {
    border-radius: 100%;
}

.testimonial-boxes small {
    color: #666;
}

footer {
    background-color: #222;
    color: #fff;
    padding-bottom: 1rem;
}

footer section.c {
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}

footer a,header a {
    text-decoration: none;
    color: #fff;
}

footer p {
    margin-bottom: 0;
}

footer .banner {
    background-color: var(--accent);
    height: 1.5rem;
}

footer section.c {
    padding: 2rem;
}

footer .links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

footer .links a {
    display: inline-flex;
    gap:0.25rem;
    justify-content: center;
}


@media screen and (min-width: 800px){
    header .banner-inner h1 {
        font-size: 4rem;
    }

    .flex-box {
        flex-wrap: nowrap;
    }

    .flex-box.reversed {
        flex-direction: row-reverse;
    }

    main h1 {
        font-size: 2.5rem;
    }

    main h2 {
        font-size: 2rem;
    }

    header .banner-inner h2 {
        font-size: 2rem;
    }

}