:root {
    --primary-blue: #004a8d;
    --secondary-green: #2e8b57;
    --btn-green: #66cc7a;
    --light-blue: #00aaff;
    --dark-blue: #003366;
    --white: #ffffff;
    --gray: #f4f4f4;
    --card-bg: #ececec;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 74, 141, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(46, 139, 87, 0.05) 0%, transparent 20%);
}

/* Header & Navigation */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

header img {
    width: 360px;
    height: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--secondary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 74, 141, 0.7), rgba(46, 139, 87, 0.7)), url('Fotos/fundo-agua.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 6rem 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Sections */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    font-weight: 700;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-green));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Atendimento Section */
#atendimento {
    background-color: var(--gray);
    max-width: 100%;
    padding: 5rem 5%;
}

.atendimento-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.atendimento-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 74, 141, 0.08);
}

.atendimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 74, 141, 0.12);
}

.atendimento-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.atendimento-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Serviços Section */
#servicos {
    background-color: var(--white);
    max-width: 100%;
    padding: 5rem 5%;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
    gap: 2rem;
    justify-content: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.servico-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 74, 141, 0.1);
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 74, 141, 0.15);
    border-color: var(--primary-blue);
}

.img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #ddd;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servico-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: 700;
}

.btn-agendar {
    background: linear-gradient(135deg, var(--btn-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 204, 122, 0.3);
    border: none;
    cursor: pointer;
}

.btn-agendar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 204, 122, 0.4);
    filter: brightness(1.1);
}

.btn-agendar:active {
    transform: scale(0.98);
}

/* Contato Section */
#contato {
    background-color: var(--gray);
    max-width: 100%;
    padding: 5rem 5%;
}

.contato-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.contato-info {
    margin-bottom: 2rem;
    text-align: center;
}

.contato-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contato-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contato-info a:hover {
    color: var(--secondary-green);
}

form {
    display: grid;
    gap: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 141, 0.1);
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 74, 141, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 141, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 74, 141, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 141, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.95rem;
    width: 100%;
}

/* Wave Containers */
.wave-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background-color: transparent;
}

.wave-container.reverse {
    transform: rotate(180deg);
}

.wave-container svg {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: 80px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== TABLET RESPONSIVENESS (768px and below) ===== */
@media (max-width: 768px) {
    header img {
        width: 220px;
    }

    .hero {
        padding: 4rem 5%;
        min-height: 45vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 3rem 5%;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .atendimento-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .atendimento-card {
        min-width: 100%;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .servico-card {
        padding: 1.5rem 1rem;
    }

    .img-container {
        width: 100px;
        height: 100px;
    }

    .servico-card h3 {
        font-size: 1rem;
    }

    .btn-agendar {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .contato-content {
        padding: 2rem;
    }

    .wave-container svg {
        max-height: 60px;
    }
}

/* ===== MOBILE RESPONSIVENESS (480px and below) ===== */
@media (max-width: 480px) {
    header img {
        width: 180px;
    }

    nav {
        padding: 0.8rem 4%;
    }

    .hero {
        padding: 3rem 4%;
        min-height: 40vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        max-width: 100%;
    }

    .btn-submit {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 2.5rem 4%;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    h2::after {
        width: 60px;
        margin: 10px auto 0;
    }

    .atendimento-container {
        flex-direction: column;
        gap: 1rem;
    }

    .atendimento-card {
        min-width: 100%;
        padding: 1.5rem 1rem;
    }

    .atendimento-card h3 {
        font-size: 1.1rem;
    }

    .atendimento-card p {
        font-size: 0.9rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .servico-card {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .img-container {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }

    .servico-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .btn-agendar {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }

    .contato-content {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .contato-info {
        margin-bottom: 1.5rem;
    }

    .contato-info p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    form {
        gap: 0.8rem;
    }

    input, textarea {
        padding: 0.7rem;
        font-size: 16px;
    }

    button[type="submit"] {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .wave-container svg {
        max-height: 50px;
    }

    footer {
        padding: 1.5rem 4%;
        font-size: 0.9rem;
    }
}

/* ===== EXTRA SMALL DEVICES (320px and below) ===== */
@media (max-width: 320px) {
    header img {
        width: 150px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .servico-card {
        padding: 1rem 0.8rem;
    }

    .img-container {
        width: 80px;
        height: 80px;
    }

    .btn-agendar {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .contato-content {
        padding: 1.2rem;
    }

    input, textarea {
        padding: 0.6rem;
        font-size: 16px;
    }
}
