@Import url("http://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700;800;900&family=Forum&display=swap");

:root {
    --primary-color: #12c2b9;
    --secondary: #dbfffe;
    --black: #141414;
    --white: #fff;
    --grey: #707070;
    --box-shadow: 0 .5rem 1rem rgba(0,0,0, 0.15);
}

* {
    font-family: 'DM Sans', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

body {
    font-family: 'DM Sans', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar{
    width: 1rem;
}

html::-webkit-scrollbar-track{
    background-color: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

section {
    padding: 5rem 7%;
}

.heading {
    position: relative;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4rem;
    text-align: center;
    margin-bottom: 3rem;
}

.heading::after {
    content: url('../src/separator.svg');
    display: block;
    width: 10rem;
    margin-inline: auto;
    margin-top: -1rem;
}



/* btn styles starts*/

.btn {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    max-width: max-content;
    border: .1rem solid var(--primary-color);
    background: var(--secondary);
    padding: 1.2rem 4.5rem;
    overflow: hidden;
    z-index: 1;
    border-radius: .5rem;
}

.btn::before {
    content: "";
    position: absolute;
    bottom: 100%; left: 50%;
    transform: translateX(-50%);
    width: 200%; height: 200%;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: 500ms ease;
    z-index: -1;
}

.btn .text {
    transition: 250ms ease;
}

.btn .text-2 {
    position: absolute;
    top: 100%; left: 46%;
    transform: translateX(-50%);
    max-width: max-content;
    color: var(--secondary);
}

.btn:is(:hover, :focus-visible)::before {
    bottom: -50%;
}

.btn:is(:hover, :focus-visible) .text-1 {
    transform: translateY(-4rem);
}

.btn:is(:hover, :focus-visible) .text-2 {
    top: 50%;
    transform: translate(-50%, -50%);
}

#contactButton {
    background-color: white;
    color: #5CCCD3;
    border: 2px solid #5CCCD3;
    transition-duration: 0.4s;
    padding: 1vh 4vh;
    margin-left: 5vh;
    border-radius: 10px;
    height: 4rem;
}

#contactButton:hover {
    background-color: #5CCCD3;
    color: white;
    cursor: pointer;
}

/* btn styles starts*/

/* header styles starts */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
}

#logoImage {
    width: 12vh;
}

.header .logo {
    font-size: 2.5rem;
    font-weight: bolder;
    color: var(--black);
}

.header .logo img {
    padding-right: .5rem;
}

.header .navbar a {
    font-size: 1.7rem;
    color: var(--black);
    margin: 0 1rem;
    padding-block: 1rem;
}

.header .navbar a:hover {
    color: var(--primary-color);
}

.header .navbar .hover-underline {
    position: relative;
    max-width: max-content;
}

.header .navbar .hover-underline::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: .5rem;
    border-block: .1rem solid var(--primary-block);
    transform: scaleX(0.2);
    opacity: 0;
    transition: 500ms ease;
}

.header .navbar .hover-underline:is(:hover, :focus-visible)::after{
    transform: scaleX(1);
    opacity: 1;
}

.header .icons div{
    font-size: 2.5rem;
    margin-left: 1.7rem;
    color: var(--black);
    cursor: pointer;
}

.header .icons div:hover{
    color: var(--primary-color);
}

#menu-btn {
    display: none;
}

.header .login-form {
    position: absolute;
    top: 115%; right: -105%;
    background: var(--white);
    box-shadow: .5rem;
    width: 35rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.header .login-form.active{
    right: 2rem;
    transition: .4s linear;
}

.header .login-form h3 {
    font-size: 2.2rem;
    color: var(--black);
    text-align: center;
    margin-bottom: .7rem;
}

.header .login-form .box {
    font-size: 1.5rem;
    margin: .7rem 0;
    border: .1rem solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.2rem;
    color: var(--black);
    text-transform: none;
    width: 100%;
}

.header .login-form .remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .7rem 0;
}

.header .login-form .remember label {
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
}

/* header styles ends */

/* home */

.home {
    min-height: 120vh;
    display: flex;
    align-items: center;
    background: url(src/backgroud.svg) no-repeat;
    /* --Backgroud Padão */
    /* background: url(src/kid_books2.svg) no-repeat; */
    background-size: cover;
    background-position: center top;
}

.home .content {
    max-width: 67rem;
}

.home .content h3 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1.5;
}


.home .content p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--white);
    padding: 1rem 0;
    text-transform: none;
}

/* Tooltip */
.home .tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  animation: fadeSlide 5s ease-in-out; /* aparece sozinho ao carregar */
}

.home .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Mostrar tooltip ao passar o mouse */
.home .whatsapp-float:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5px); /* sobe levemente */
}

/* Animação inicial */
@keyframes fadeSlide {
  0% { opacity: 0; transform: translateY(0); visibility: visible; }
  10% { opacity: 1; transform: translateY(-5px); visibility: visible; }
  80% { opacity: 1; transform: translateY(-5px); visibility: visible; }
  100% { opacity: 0; transform: translateY(0); visibility: hidden; }
}


/* home ends*/


/* about start */

.about .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    padding: 0 5%;
}

.about .container .about-image {
    /* position: relative; */
    flex: 1 1 40rem;
    max-width: 70rem;
}

.about .container .about-image img {
    width: 40rem;
    height: auto;
}

.about .container .about-image .img1 {
    width: 80%;
}

.about .container .about-image .about-img {
    position: absolute;
    bottom: -10rem;
    right: -1rem;
    width: 40rem;
    padding-block: 5rem;
}
.about .container .about-content {
    flex: 1 1 40rem;
    /* padding-left: 6rem;
    padding-top: 8rem; */
    max-width: 70rem;
    padding: 2rem;
    margin: 5rem;
}

.about .container .about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about .container .about-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-transform: none;
}

/* about ends */


/* subjects */

.subjects .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    padding: 4rem;
}

.subjects .box-container .box {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    max-width: 35rem;
    margin: 0 auto;
}

.subjects .box-container .box:hover {
    background: rgb(161, 179, 182, 0.8);
    cursor: pointer;
}

.subjects .box-container .box img {
    height: 10rem;
    margin-bottom: .7rem;
}

.subjects .box-container .box h3 {
    font-size: 1.7rem;
    color: #444;
    padding: .5rem 0;
    text-transform: capitalize;
}

.subjects .box-container .box:hover h3 {
    color: #fff;
}

.subjects .box-container .box p {
    font-size: 1.5rem;
    line-height: 2;
    color: #777;
    height: auto;
    max-width: 80%;
    margin: 0 auto;
    text-transform: none;
    height: 250px;
}

.subjects .box-container .box:hover p {
    color: #fff;;
}



/* subjects ends */

/* blog starts */

.blog {
    background: rgba(196, 196, 196, 0.4);
}

.blog .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.blog .box-container .box {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding-top: 100%;
}

.blog .box-container .box .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog .box-container .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog .box-container .box:hover .image img {
    transform: scale(1.1);
}

.blog .box-container .box .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;  
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0), transparent);
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.blog .box-container .box .content h3 {
    font-size: 3rem;
    margin-bottom: 0;
    padding: 1rem;
}

.blog .box-container .box .content p {
    font-size: 1.4rem;
}


/* blog ends */

/* cardapio e materiais starts */

.heading .pro {
    color: inital;
    font-size: 1.2em;
}

.heading .pro .p {
    color: #DFB750;
}

.heading .pro .r {
    color: #3B9639;
}

.heading .pro .o {
    color: #9F282B;
}


.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 6rem;
}

.card {
    width: 45%;
    max-width: 400px;
    min-width: 300px;
    aspect-ratio: 1 / 1;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 15px;
}

.card:first-child {
    background-color: #B2D149;
    border: 3px solid #798D32;
}

.card:last-child {
    background-color: #FEC942;
    border: 3px solid #B48E2E;
}

.card h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 4rem;
    font-weight: 900;
}

.card p {
    color: black;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: capitalize;
    text-transform: none;
}

.card i {
    font-size: 10rem;
    color: white;
    margin-bottom: 20px;
}

.card button {
    padding: 8% 16%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    border: 2px solid white;
    font-size: 2rem;
}

.card:first-child button {
    background-color: #798D32;
}

.card:last-child button {
    background-color: #B48E2E;
}

@media (max-width: 768px) {
    .card {
        width: 90%;
        max-width: none;
    }
}


/* cardapio e materiais ends */

/* contatos starts */

.contact {
    background-color: rgba(196, 196, 196, 0.4);
    padding: 5rem 7%;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background-color: #9A312D;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 10px;
}

.contact-card h2 {
    font-size: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 2;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    font-size: 1.6rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
}

.contact-form textarea {
    height: 15rem;
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
}


/* contatos ends */

/* footer starts */
.footer {
    color: var(--black);
    padding: 4rem 7%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 100px;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 1.4rem;
    line-height: 1.6;
}

.footer-text ul {
    list-style-type: none;
    padding-left: 1rem;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #873030;
}

.footer ul {
    list-style-type: none;
    padding: 0;
}

.footer ul li, .footer p {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #707070;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #505050;
}

.footer i {
    margin-right: 0.5rem;
}


/* modal cardapio starts */

#menuModal .modal-content {
    width: 90%;
    max-width: 800px;
}

#menuTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#menuTable th, #menuTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#menuTable th {
    background-color: #f2f2f2;
}



/* modal cardapio ends */



@media (max-width: 768px) {
    .footer-column {
        flex-basis: 100%;
    }
}

/* footer ends */

/* modals starts */

.modal {
    position: fixed;
    z-index: 1001; /* Increase z-index to be above the header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-start; /* Align to the top */
    justify-content: center;
    padding-top: 60px; /* Add padding to account for header height */
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto; /* Center horizontally */
    padding: 2rem;
    border: 0.1rem solid #888;
    width: 90%;
    max-width: 120rem;
    max-height: calc(100vh - 80px); /* Subtract header height and some extra space */
    border-radius: 2rem;
    position: relative;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#modalContent {
    font-size: 1.6rem;
    line-height: 1.5;
    overflow-y: auto;
    padding-right: 2rem;
    flex-grow: 1;
}


.modal-content p {
    text-transform: none;
}

.modal-header {
    padding: 10px;
    color: white;
    position: relative;
    margin: -20px -20px 20px -20px;
}

.modal-header.one {
    background-color: #65211E;
}

.modal-header.two {
    background-color: #FEC942;
    color: #B48E2E;
}

.modal-header.three {
    background-color: #798D32;
    color: #B2D149;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    font-family: 'Forum', serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.modal-highlight {
    color: inherit;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin: 2rem 0;
    text-align: center;
}

.modal-subtitle {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
}

.modal-content.two .modal-highlight {
    color: #B48E2E;
}

#materialsModal .modal-content {
    width: 90%;
    max-width: 800px;
}

#gradeButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.grade-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.grade-btn:hover {
    background-color: var(--secondary);
    color: var(--primary-color);
}

#materialsList h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

#materialsList ul {
    list-style-type: none;
    padding-left: 20px;
}



@media screen and (max-width: 768px) {
    .modal {
        padding-top: 50px; /* Adjust padding for smaller screens */
    }

    .modal-content {
        width: 95%;
        max-height: calc(100vh - 70px); /* Adjust for smaller header on mobile */
    }

    #modalTitle {
        font-size: 2rem;
    }

    #modalContent {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .modal-highlight {
        font-size: 1.8rem;
    }

    .modal-subtitle {
        font-size: 1.6rem;
    }

    .close {
        font-size: 2.5rem;
        top: 5px;
        right: 10px;
    }
}



@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.8);}
    to {opacity: 1; transform: scale(1);}
}

@keyframes modalFadeOut {
    from {opacity: 1; transform: scale(1);}
    to {opacity: 0; transform: scale(0.8);}
}



/* modals ends */







@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .about .container .about-image,
    .about .container .about-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header {
        padding: 2rem;
    }

    .header .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        background: var(--white);
        width: 30rem;
        height: calc(100vh - 9.5rem);
    }

    .header .navbar.active {
        right: 0;
    }

    .header .navbar a {
        display: block;
        margin: 1.5rem;
        padding: .5rem;
        font-size: 2rem;
    }

    #menu-btn {
        display: inline-block;
    }

    .home .content h3 {
        font-size: 3rem;
    }

    .home .content p {
        font-size: 1.5rem;
    }

    .about .container {
        flex-direction: column;
    }

    .about .second-container {
        display: flex;
        flex-direction: column;
    }

    .about .container .second-content {
        order: 2;
    }

    .about .container .second-image {
        order: 1;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
}

@media screen and (max-width: 600px) {
    .modal-content {
        width: 90%;
    }

    .close {
        font-size: 28px;
    }

    #modalTitle {
        font-size: 20px;
    }

    #modalContent {
        font-size: 14px;
    }
}



/* admin page starts */

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#menu-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#menu-form input,
#menu-form textarea {
    padding: 10px;
    font-size: 16px;
}

#menu-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

/* BTN Watss */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;   /* distância do rodapé */
  right: 20px;    /* distância da lateral */
  background-color: #25D366; /* verde oficial */
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1); /* efeito de zoom no hover */
  background-color: #1ebe5d;
}

/* admin page ends */