/* =============================
    1) Global Setting

    ============================ */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004a99;
    --accent-color: #ffcc00;
    --body-font: Arial, Helvetica, sans-serif;
    --heading-font: "Segoe UI", Arial, sans-serif;
    --page-width: 840px;

    --logo-width: 150px;
    /* Optional spacing variables */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;

}

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

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

/* =========================================
    2) Base Elements (tags)


/* ========================================= */

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

p {
    margin: 1rem 0;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* =========================================
    3) Layout (page structure)

    ========================================*/
header,
main,
footer {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
}

header,
footer,
.employee_profiles,
.adventures {
    text-align: center;
}

/* ====================================
    Header & Navigation
    =================================== */

header {
    display: grid;
    grid-template-columns: minmax(120px, 150px) 1fr;
    align-items: center;
    padding: 1rem;
    gap: 0;
    background-color: #fff;
    /*flex-wrap: wrap;*/
}

header .logo {
    width: var(--logo-width);
    height: auto;

}

header nav {
    display: flex;
    justify-content: flex-end;

}

header nav a {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;

}

header nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================
    Home Page Sections
    ======================== */

/* ------ home-banner ------ */

.home-banner {
    position: relative;
}

.home-banner h1 {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;

    background-color: white;
    padding: 10px 15px;
    border-radius: 6px;

}

.home-banner img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* ------ banner-content ------*/
.banner-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    max-width: 400px;
}

.cta-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

/* ------ newsletter ------ */
.newsletter {
    text-align: center;
    margin: 2rem 0;
}

.newletter form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 1rem auto;
    gap: 0.8rem;
}

.newletter form input {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;

}

.newsletter form button {
    padding: 0.6rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

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

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.home-grid article {
    border: 1px solid #ccc;
    background: #fff;
    padding: 1rem;
    text-align: center;
}

.home-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ===========================
   5) About Page Sections
    ========================== */

/* ------ Hero ------ */

.hero {
    position: relative;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}

.hero h1 {
    position: absolute;
    top: 20px;
    width: 100%;
    padding: 16px;
    text-align: center;

    background-color: var(--accent-color);
    color: #000;

}

.hero article {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 16px;
    color: #000;
}

.hero article img {
    float: right;
    width: 125px;
    height: auto;
    margin-left: 12px;
}

/* ------ History ------ */

.history {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.history h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
}

.history img {
    width: 100%;
    height: auto;
    display: block;
}

.history p {
    background: none;
    padding: 0;
    border: none;
}

/* ------ Adventrures ------ */

.adventures-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 20px 0;
}

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

}

.adventures-container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s, filter 0.3s ease;

}

.adventures-container figure:hover img {
    transform: scale(1.05);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
    cursor: pointer;
}

.adventures-container figcaption {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--secondary-color);

}

.adventures-container figure:hover figcaption {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* ==============================
    6) footer
    ============================= */

footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #d1c4e9;
    margin-top: 2rem;
}

footer p {
    grid-column: 2;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    color: #000;
}

footer .socialmedia {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

footer .socialmedia img {
    width: 30px;
    height: 30px;
    border: 1px solid #333;
    background-color: #fff;
    padding: 2px;
}

footer .socialmedia a {
    text-decoration: none;
}

/* =============================
   Trips Page
   ============================= */

.trips-banner {
    position: relative;
    margin: 1rem 0;
}

.trips-banner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.trips-banner-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
}

.trips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.trip-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border: 1px solid #ccc;
    padding: 1rem;
    background: #fff;
}

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

.trips-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #fff;
}

.trips-table caption {
    caption-side: top;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #444;
}

.trips-table th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 0.8rem;
}

.trips-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
}

.trips-table tr:hover {
    background-color: #f5f9ff;
}

/* ============================
    Contact Page
    =========================== */

.company-info {
    text-align: center;
}

div address {
    margin: 1rem 0;
    font-style: normal;
}

/* ------ google map ------ */
.contact-container {
    /*
    width: 100%;
    max-width: var(--page-width);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    outline: 3px solid red;
    */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    /*outline: 3px solid red;*/
}

.contact-container .google-map {
    display: flex;
    flex-direction: column;
    min-height: 350px;

}

.contact-container .google-map iframe {
    /*
    flex: 1;
    height: 100%;
    border: 0;
    display: block;
    */
    flex: 1;
    width: 100%;

    border: 0;
    display: block;

}

/* ------ Form Layout ------*/
.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 2rem;
    padding: 1rem;
    border: 1px solid #ccc;
    background-color: #fff;

}

.contact-container form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
}

.contact-container form input,
textarea {
    padding: 0.6rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font: inherit;
}

.contact-container form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-container form fieldset {
    padding: 1rem;
    border: 1px solid #bbb;
}

.contact-container form legend {
    padding: 0 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* radio labels should be horizontal */
.contact-container form fieldset label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* checkbox label should be horizontal too */
.contact-container form label input[type="checkbox"] {
    width: auto;
}

.contact-container form label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
}

.contact-container form button[type="submit"] {
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.contact-container form button[type="submit"]:hover {
    background-color: var(--secondary-color);

}

/* --- Employee profiles ------*/
.employee_profiles {
    margin: 2rem 0;
}

.employee_profiles_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.employee_profiles_container figure {
    border: 1px solid #ccc;
    background: #fff;
    padding: 0.5rem;
    text-align: center;
}

.employee_profiles_container img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.employee_profiles_container figcaption {
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}