@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --primary-color: #3f716e;
    --primary-dark: #2d524f;
    --primary-light: #5a9d99;
    --accent-color: #e8b339;
    --bg-light: #f8fafa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Roboto", sans-serif;
    color: var(--primary-color);
    box-sizing: border-box;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
}

a { 
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1 {
    font-size: 1.5em;
    font-weight: 600;
}

h2 {
    font-size: 2em;
    padding: 0.5em 0 1.5em;
    font-weight: bold;
    position: relative;
}

#about h2::after,
#services h2::after {
    content: '';
    position: absolute;
    bottom: 0.8em;
    left: 50%;
    font-size: 1.5em;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 1em 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(194, 194, 194, 0.3);
    color: rgb(61, 61, 61);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.content-header {
    width: 50vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.logo {
    width: 10em;
    height: 3em;
}
.menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu li {
    margin-right: 20px;
    position: relative;
}

.menu li::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.menu li:hover::after {
    width: 100%;
}
  
.menu li:last-child {
    margin-right: 0;
}

.banner {
    background-image: url('/images/banner2.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 50vw;
    color: whitesmoke;
}

.detail {
    background: linear-gradient(135deg,rgba(0, 0, 0, 0.671)  0%, rgba(49, 141, 135, 0.568) 100%);
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2em;
}

.detail h2 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.detail p {
    font-size: 1.2em;
    opacity: 0.95;
    margin-top: 0.5em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button {
    margin-top: 2em;
    padding: 1em 2.5em;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(232, 179, 57, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-button:hover {
    -webkit-box-shadow: 13px 9px 19px -11px rgba(232, 179, 57, 0.5);
    box-shadow: 13px 9px 19px -11px rgba(232, 179, 57, 0.5);
    transform: translateY(-3px);
    background: #d4a030;
    color: white !important
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3em 0 5em 0;
    border-bottom: 1px solid rgb(194, 194, 194);
}

#services {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3em 0 5em 0;
}

.services-content {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.service-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1em;
    width: 16em;
    padding: 1.5em;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(63, 113, 110, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card img {
    width: 8em;
    height: 8em;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.1em;
    font-weight: bold;
    padding: 1em;
    color: var(--primary-dark);
}

.service-card p {
    color: #666;
    line-height: 1.6;
    text-align: center;
}

footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    width: 100%;
    padding: 2em 0;
    display: flex;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95em;
    margin-top: 2em;
}

/* ========== RESPONSIVIDADE ========== */

/* Desktop grande (> 1200px) - valores padrão */

/* Desktop médio e laptops */
@media only screen and (max-width: 1200px) {
    .content-header {
        width: 70vw;
    }
    .banner {
        width: 70vw;
    }
    #about {
        width: 70vw;
    }
    #services {
        width: 70vw;
    }
}

/* Tablets e laptops pequenos */
@media only screen and (max-width: 992px) {
    .content-header {
        width: 85vw;
    }
    .banner {
        width: 85vw;
    }
    #about {
        width: 85vw;
        padding: 2.5em 1.5em;
    }
    #services {
        width: 85vw;
        padding: 2.5em 1.5em;
    }
    .services-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .service-card {
        width: 45%;
        min-width: 250px;
    }
    .detail h2 {
        font-size: 2em;
    }
}

/* Tablets em modo retrato */
@media only screen and (max-width: 768px) {
    .content-header {
        width: 95vw;
        padding: 0 1em;
    }
    .banner {
        width: 100%;
    }
    .detail {
        height: 380px;
        padding: 1.5em;
    }
    .detail h2 {
        font-size: 1.8em;
        padding: 0.3em 0;
    }
    .detail p {
        font-size: 1em;
    }
    #about {
        width: 100%;
        padding: 2em 1.5em;
        text-align: center;
    }
    #services {
        width: 100%;
        padding: 2em 1.5em;
    }
    .services-content {
        flex-direction: column;
        align-items: center;
    }
    .service-card {
        width: 90%;
        max-width: 400px;
    }
    .menu li {
        margin-right: 15px;
        font-size: 0.95em;
    }
    footer {
        padding: 1.5em 1em;
        text-align: center;
    }
}

/* Smartphones */
@media only screen and (max-width: 600px) {
    body {
        box-sizing: border-box;
    }
    h2 {
        font-size: 1.6em;
    }
    .content-header {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 0.5em 1em;
    }
    .logo {
        width: 8em;
        height: 2.5em;
    }
    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5em;
    }
    .menu li {
        margin-right: 10px;
        font-size: 0.9em;
    }
    .banner {
        width: 100%;
    }
    .detail {
        height: auto;
        min-height: 320px;
        padding: 2em 1.5em;
    }
    .detail h2 {
        font-size: 1.5em;
        line-height: 1.3;
    }
    .detail p {
        font-size: 0.95em;
    }
    .cta-button {
        padding: 0.8em 2em;
        font-size: 0.9em;
    }
    #about {
        width: 100%;
        padding: 2em 1.5em;
        text-align: justify;
        box-sizing: border-box;
    }
    #about p {
        font-size: 0.95em;
        line-height: 1.7;
    }
    #services {
        width: 100%;
        padding: 2em 1em;
        box-sizing: border-box;
    }
    .services-content {
        flex-direction: column;
        gap: 1em;
    }
    .service-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .service-card img {
        width: 6em;
        height: 6em;
    }
    .service-card h3 {
        font-size: 1em;
        padding: 0.8em;
    }
    .service-card p {
        font-size: 0.9em;
    }
    footer {
        padding: 1.5em;
        font-size: 0.85em;
    }
}

/* Smartphones pequenos */
@media only screen and (max-width: 400px) {
    .detail h2 {
        font-size: 1.3em;
    }
    .detail p {
        font-size: 0.85em;
    }
    .cta-button {
        padding: 0.7em 1.5em;
        font-size: 0.85em;
    }
    .menu li {
        margin-right: 8px;
        font-size: 0.8em;
    }
    #about h2::after,
    #services h2::after {
        width: 40px;
    }
}