:root {
    --primary-color: #0667cc;
    --secondary-color: #8f9d3d;
    --accent1-color: #0e171e;
    --accent2-color: #826a02;
    --heading-font: "Times New Roman", "Georgia", serif;
    --body-font: Arial, Helvetica, sand-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--accent1-color)
}

header,
main,
footer {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
}

h1,
h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}

nav,
p,
section,
article {
    margin: 16px;
    padding: 8px;
}

div.hero {
    position: relative;
}

.hero h1 {
    position: absolute;
    bottom: .5rem;
    right: 1rem;
    background-color: white;
    /*name color here!!*/
    opacity: .7;
    color: var(--accent1-color);
    padding: 1rem;
    border-radius: 10px;
}

.hero article {
    position: absolute;
    top: -10px;
    background-color: var(--secondary-color);
    opacity: .9;
    border-radius: 10px;
}

.hero article img {
    float: right;
    width: 125px;
    margin-left: 1rem;
}

.hero article p {
    margin: 0;
    text-align: justify;
}

footer p {
    color: var(--accent2-color);
    font-weight: 700;
    margin: 0;
}

footer nav img {
    width: 35px;
    height: auto;
    margin-right: 1rem;
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    background-color: var(--primary-color);
}

header img {
    width: 120px;
    border: #0e171e;
    border-radius: 1rem;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

header nav a {
    text-decoration: none;
    color: var(--accent1-color);
    font-weight: 600;
}

/*footer part*/
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.socialmedia {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.socialmedia a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    text-decoration: none;
    color: var(--accent1-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.socialmedia img {
    width: 35px;
    height: 35px;
    margin-bottom: 0.3rem;
}

.adventures {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 16px;
}

.adventures figure {
    margin: 0;
    text-align: center;
}

.adventures img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.adventures figcaption {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.history h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.history-grid img {
    max-width: 250px;
    width: 100%;

}

/* contact part
*/

@media (max-width: 700px) {

    .history-container {
        flex-direction: column;
    }

    .hero article {
        position: static;
        background-color: transparent;
        padding: 0;
        margin-bottom: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        order: unset;
    }

    .employees figure {
        width: 100%;
        margin-bottom: 20px;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px auto;
    align-items: start;
}

.contact-info {
    order: 1;
    background-color: gray;
    padding: 20px;
    border-radius: 8px;
}

.contact-form {
    order: 2;
    background-color: gray;
    padding: 20px;
    border-radius: 8px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.contact-form fieldset {
    margin-top: 15px;
    padding: 10px;
    border: none;
}

.contact-form legend {
    font-weight: bold;
}

.contact-form fieldset label,
.contact-form .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-top: 8px;
}

.contact-form .checkbox {
    margin-top: 15px;
}

.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
    margin: 0;
}

.submit-btn {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #2a6f9e;
}

.contact-info iframe {
    width: 100%;
    height: 250px;
    border: none;
    margin-top: 15px;
}

.employees {
    margin: 40px auto;
    text-align: center;
}

.employees h2 {
    margin-bottom: 20px;
}

.employees figure {
    display: inline-block;
    width: 30%;
    margin: 0 1%;
}

.employees img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.employees figcaption {
    margin-top: 8px;
    font-weight: 600;
}

.contact-hero {
    text-align: center;
    margin: 10px auto;
    font-size: 1.1rem;
}

/* HOME PAGE STYLES */

/* Hero botón part */
.cta-button {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

.cta-button:hover {
    background-color: var(--accent2-color);
}

/* Newsletter part*/
.newsletter {
    text-align: center;
    margin: 40px auto;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 8px;
    width: 200px;
}

.newsletter button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.newsletter button:hover {
    opacity: 0.9;
}

/* Home Grid Section */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 40px auto;
}

.grid-item {
    text-align: center;
}

.grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.grid-item h3 {
    margin-top: 1rem;
    color: var(--primary-color);
}

.grid-item p {
    margin-top: 0.5rem;
}

/* Responsive Home */
@media (max-width: 700px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        flex-direction: column;
        align-items: center;
    }
}

/* TRIPS PAGE part*/

.trips-hero {
    text-align: center;
    margin: 40px auto;
}

.trips-hero p {
    margin: 10px 0 20px;
}

.trip-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 40px auto;
}

.trip-card {
    text-align: center;
}

.trip-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.trip-card h3 {
    margin-top: 1rem;
    color: var(--primary-color);
}

.trip-card p {
    margin-top: 0.5rem;
}

/* Table Section baby*/

.trip-table {
    margin: 40px auto;
    text-align: center;
}

.trip-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.trip-table th,
.trip-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.trip-table th {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 900px) {
    .trip-cards {
        grid-template-columns: 1fr;
    }
}