/* rafting.css - COMPLETE RAFTING SITE STYLESHEET */

/* 1. Universal reset - improved */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Color variables - ONLY HEX for consistency */
:root {
    --primary: #1e3a8a;
    /* Dark blue */
    --secondary: #2563eb;
    /* Medium blue */
    --accent: #065f46;
    /* Forest green */
    --highlight: #b45309;
    /* Dark orange (5.02:1 contrast) */
    --dark: #000000;
    /* Black for text */
    --light: #ffffff;
    /* White */
    --gray: #f3f4f6;
    /* Light gray */
    --light-blue: #dbeafe;
    /* Light blue for sections */
}

/* 3. Body */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--light);
    line-height: 1.6;
}

/* ========== HEADER & NAV (ALL PAGES) ========== */
header {
    background-color: var(--primary);
    padding: 15px 0;
    margin-bottom: 20px;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
}

.header-grid img {
    height: 60px;
    width: auto;
}

.nav-flex {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 20px;
}

.nav-flex a {
    color: var(--light);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    background-color: var(--secondary);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-flex a:hover {
    background-color: #1d4ed8;
}

.nav-flex a.active {
    background-color: var(--highlight);
    color: var(--light);
}

/* ========== FOOTER (ALL PAGES) ========== */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 25px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

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

.socialmedia a {
    text-decoration: none;
}

.socialmedia img {
    width: 30px;
    height: 30px;
}

/* ========== BUTTONS (ALL PAGES) ========== */
.cta-button {
    display: inline-block;
    background-color: var(--highlight);
    color: var(--light);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--light);
}

.cta-button:hover {
    background-color: #92400e;
    transform: scale(1.05);
}

.cta-button-large {
    display: inline-block;
    background-color: var(--highlight);
    color: var(--light);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--light);
}

/* ========== ABOUT PAGE STYLES ========== */
.hero {
    position: relative;
    margin: 30px 0;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

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

.hero h1 {
    position: absolute;
    top: 40px;
    width: 100%;
    text-align: center;
    color: var(--light);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: rgba(30, 58, 138, 0.7);
    padding: 20px;
    margin: 0;
}

.hero article {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
}

.hero article img {
    float: right;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-left: 20px;
    border: 3px solid var(--highlight);
}

.hero article::after {
    content: "";
    display: table;
    clear: both;
}

.history {
    background-color: var(--light-blue);
    padding: 40px;
    margin: 40px 0;
    border-radius: 8px;
}

.history h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
}

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

.history-content img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.adventure {
    background-color: var(--light-blue);
    padding: 40px;
    margin: 40px 0;
    border-radius: 8px;
}

.adventure h2 {
    text-align: center;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 30px;
}

.adventure-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.adventure-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.adventure-gallery figcaption {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

/* ========== CONTACT PAGE STYLES ========== */
.contact-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 50px 20px;
    text-align: center;
    margin: 20px 0 40px;
    border-radius: 8px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.company-info {
    background-color: var(--gray);
    padding: 40px;
    margin: 40px 0;
    border-radius: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-item {
    background-color: var(--light);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-section {
    margin: 40px 0;
}

.map-container {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form {
    background-color: var(--gray);
    padding: 40px;
    margin: 40px 0;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

.submit-btn {
    background-color: var(--highlight);
    color: var(--light);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
}

.employee-profiles {
    margin: 40px 0;
}

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

.employee-grid figure {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.employee-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.employee-grid figcaption {
    padding: 15px;
}

/* ========== HOME PAGE STYLES ========== */
.home-hero {
    position: relative;
    margin: 30px 0 40px;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
}

.home-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.home-hero h1 {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--light);
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    padding: 20px;
    margin: 0;
}

.home-hero-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--light);
}

.home-hero-content p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 60px 30px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 15px;
}

.home-grid {
    margin: 60px 0;
}

.home-grid h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-item {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-item h3 {
    color: var(--primary);
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.grid-item p {
    padding: 0 20px 20px;
}

.newsletter {
    background-color: var(--light-blue);
    padding: 60px 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.newsletter h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.subscribe-btn {
    background-color: var(--highlight);
    color: var(--light);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
}

.home-contact {
    background: linear-gradient(135deg, var(--primary), #1e3a8a);
    color: var(--light);
    padding: 60px 30px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.home-contact h2 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 15px;
}

/* ========== TRIPS PAGE STYLES ========== */
.trips-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 60px 20px;
    text-align: center;
    margin: 20px 0 40px;
    border-radius: 12px;
}

.trips-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.trips-cta {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.trips-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.trip-grid h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.trips-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trip-card {
    background-color: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.trip-card:hover {
    transform: translateY(-5px);
}

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

.trip-content {
    padding: 25px;
}

.trip-content h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.difficulty {
    font-weight: 600;
    margin-bottom: 5px;
}

.difficulty.beginner {
    color: #065f46;
}

.difficulty.intermediate {
    color: #b45309;
}

.difficulty.advanced {
    color: #991b1b;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.trips-table-section {
    margin: 60px 0;
}

.trips-table-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.table-responsive {
    overflow-x: auto;
}

.trips-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.trips-table th {
    background-color: var(--primary);
    color: var(--light);
    padding: 15px;
    text-align: left;
}

.trips-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.trips-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.final-cta h2 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 20px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {

    .grid-container,
    .trips-container,
    .employee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adventure-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .nav-flex {
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-hero h1 {
        font-size: 2rem;
        top: 40px;
    }

    .home-hero-content {
        bottom: 40px;
    }

    .grid-container,
    .trips-container,
    .employee-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .history-content {
        grid-template-columns: 1fr;
    }

    .adventure-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .trips-cta {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .adventure-gallery {
        grid-template-columns: 1fr;
    }

    .nav-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .home-hero h1 {
        font-size: 1.8rem;
    }

    .trips-hero h1 {
        font-size: 2rem;
    }
}