:root {
    --primary-color: #0B6B6B;
    --secondary-color: #D8B25C;
    --accent1-color: #0B1F2A;
    --accent2-color: #44C7C7;
    --surface-color: #FFFFFF;

    --overlay-dark: rgba(11, 31, 42, 0.78);
    --shadow-strong: rgba(0, 0, 0, 0.2);
    --shadow-soft: rgba(0, 0, 0, 0.15);
    --border-muted: #cccccc;

    --heading-font: "Georgia", "Times New Roman", serif;
    --body-font: Arial, Helvetica, sans-serif;
}

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

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

header,
main,
footer {
    width: 85%;
    margin: 0 auto;
}

p {
    padding: 10px 0;
}

/* HEADER */
header {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
}

.logo {
    width: 80px;
    height: auto;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav a {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--accent1-color);
    font-weight: 600;
}

nav a:hover {
    background: var(--secondary-color);
}

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

.socialmedia {
    display: flex;
    gap: 12px;
}

.socialmedia img {
    width: 32px;
}

main section h2 {
    background: var(--primary-color);
    color: var(--surface-color);
    text-align: center;
    padding: 8px;
    font-family: var(--heading-font);
}

/**************** HERO ****************/
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 0;
}

.hero h1 {
    position: absolute;
    top: 20px;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--primary-color);
    color: var(--surface-color);
    opacity: .85;
    font-family: var(--heading-font);
    z-index: 2;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 12px;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
}

.newsletter-form button {
    align-self: end;
    height: 42px;
    padding: 0 16px;

}

/**************** ABOUT ****************/
.hero article {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    padding: 16px;
    background: var(--overlay-dark);
    color: white;
    z-index: 2;
}

.hero article img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    float: right;
    margin-left: 12px;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    gap: 16px;
    padding: 16px;
    align-items: center;
}

.history-content img {
    width: 260px;
    height: 170px;
    object-fit: cover;
}

.rivers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 16px;
}

.rivers figure {
    margin: 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.rivers img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.rivers figcaption {
    text-align: center;
    padding: 10px;
    font-size: .9rem;
}

/**************** CONTACT ****************/
.contact-header {
    text-align: center;
    margin: 24px 0;
}

.contact-header h1 {
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.contact-map iframe {
    width: 100%;
    height: 380px;
    border-radius: 6px;
    box-shadow: 0 2px 6px var(--shadow-strong);
}

.contact-card form {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 16px;
    padding: 16px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px var(--shadow-soft);

}

.contact-card input,
.contact-card textarea {
    padding: 8px;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
}

.contact-card fieldset {
    grid-column: 1/3;
    padding: 10px;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
}

.contact-card button {
    grid-column: 1/3;
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
}

.contact-card button:hover {
    background: var(--secondary-color);
    color: var(--accent1-color);
}

.contact-card textarea {
    grid-column: 1 / 3;
    width: 100%;
}

.contact-card label[for="message"] {
    grid-column: 1 / 3;
}

.contact-grid {
    align-items: stretch;
}

.contact-map iframe {
    height: 100%;
    min-height: 420px;
}

.contact-card form {
    height: 100%;
}

/**************** TEAM ****************/
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.team-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}

/**************** HOME ****************/
.hero-cta {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 16px;
    background: var(--overlay-dark);
    color: white;
    border-radius: 6px;
    max-width: 420px;
    z-index: 2;
}

.button-box,
.btn-cta {
    display: inline-block;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    background: var(--secondary-color);
    color: var(--accent1-color);
}

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

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 22px 0;
}

.newsletter {
    grid-column: 1/3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 26px;
    background: rgba(216, 178, 92, .25);
    border-radius: 6px;

}

.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--border-muted);
}

.newsletter-form button {
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.why {
    padding: 26px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .5s;
}

.card:hover img {
    transform: scale(1.12) translateY(-10px);
}

.card figcaption {
    padding: 12px;
}

.feature {
    grid-column: 1/4;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.feature img {
    width: 100%;
    transform: scale(1.02);
    transition: transform .9s;
}

.feature:hover img {
    transform: scale(1.06);
}

.overlay-box {
    position: absolute;
    bottom: 18px;
    right: 18px;
    padding: 16px;
    background: rgba(0, 0, 0, .56);
    color: white;
    border-radius: 16px;
    max-width: 520px;
}

/**************** RESPONSIVE ****************/
@media(max-width:900px) {

    header,
    main,
    footer {
        width: 100%;
        padding: 0 16px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

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

    .rivers {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:520px) {
    .rivers {
        grid-template-columns: 1fr;
    }
}

/******** TRIPS ********/

.trips-cta {
    display: flex;
    justify-content: center;
    margin: 18px 0 12px 0;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 18px 0;
    align-items: stretch;
}

.trip-card {
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.trip-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 500ms ease;
}

.trip-card:hover img {
    transform: scale(1.12) translateY(-10px);
}

.trip-body {
    padding: 14px;
}

.trip-card h3 {
    font-family: var(--heading-font);
    margin-bottom: 8px;
}

.trip-card ul {
    margin-left: 18px;
    margin-top: 10px;
}

.trip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 26px 0;
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.trip-table th,
.trip-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.trip-table thead th {
    background: rgba(11, 107, 107, 0.12);
    font-family: var(--heading-font);
}

.trip-table tbody tr:hover {
    background: rgba(216, 178, 92, 0.18);
}

.trip-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trip-body .btn-cta {
    margin-top: auto;
}

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