/* =====================================
   Rafting Site — About Us page styles
   Author: Elon Paul Anozie Nnamdi
===================================== */

/* ---------- Variables ---------- */
:root {
  --primary-color: #055a05;     /* forest green */
  --secondary-color: #f4a261;   /* warm sand */
  --accent1-color: #264653;     /* dark slate */
  --accent2-color: #ffeb8a;     /* lighter yellow for better contrast */
  --heading-font: "Times New Roman", Georgia, serif;
  --body-font: Arial, Helvetica, sans-serif;
}

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

/* ---------- Base ---------- */
body {
  font-family: var(--body-font);
  color: var(--accent1-color);
  background: #fafafa;
}

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

p {
  line-height: 1.6;
}

/* ---------- Page Layout ---------- */
header, main, footer {
  width: 840px;
  margin: 0 auto;
}

/* ---------- Boxed Panel Style ---------- */
.hero,
.history,
.adventures,
footer {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  margin: 24px auto;
  width: 840px;
}

/* ---------- Header ---------- */
header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: var(--primary-color);
  color: var(--accent2-color);
  padding: 12px 32px;
  border-radius: 6px;
}

header img {
  max-height: 64px;
}

nav ul {
  list-style: none;
  display: flex; /* ✅ nav uses flexbox */
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  gap: 12px;
}

nav a {
  color: var(--accent2-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
}

nav a:hover {
  background: var(--secondary-color);
  color: #fff;
  border-radius: 4px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 16px;
  text-align: center;
  background: var(--accent1-color);
  color: #fff;
  font-size: 1.8rem;
  opacity: 0.9;
}

.hero article {
  position: absolute;
  bottom: 20px;
  left: 2%;
  right: 2%;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

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

/* ---------- History Section ---------- */
.history {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  text-align: center;
}

.history h2 {
  grid-column: 1 / 4;
}

.history img {
  grid-column: 2;
  max-width: 200px;
  margin: 0 auto;
}

.history .left-text {
  grid-column: 1;
  text-align: justify;
}

.history .right-text {
  grid-column: 3;
  text-align: justify;
}

/* ---------- Adventures Section ---------- */
.adventures h2 {
  text-align: center;
  margin-bottom: 16px;
}

.adventure-gallery {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
}

.adventure-gallery figure {
  flex: 1 1 18%;
  text-align: center;
}

.adventure-gallery img {
  width: 100%;
  border-radius: 6px;
}

.adventure-gallery figcaption {
  margin-top: 6px;
  font-weight: bold;
}

/* ---------- Footer ---------- */
footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

footer p {
  margin: 0;
  text-align: center;
}

footer .socialmedia {
  display: flex;
  gap: 12px;
  justify-content: flex-end; /* ✅ aligned to right */
}

footer .socialmedia img {
  width: 36px;
  height: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  header, main, footer,
  .hero, .history, .adventures {
    width: 95%;
  }
  header img {
    max-height: 48px;
  }
  .hero article img {
    width: 100px;
  }
  .history {
    grid-template-columns: 1fr;
  }
}













/* ================================
   Contact Us Page Styles
================================ */

/* Company Info Section */
.company-info {
  text-align: center;
  margin: 2rem auto;
}

.company-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.company-info address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Layout: Map + Form side by side */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.contact-layout .map iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Contact Form */
.contact-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

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

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

.contact-form button {
  background: #003366;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0055aa;
}

/* Team Section */
.team {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
}

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

.team-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.team-gallery figure {
  text-align: center;
  width: 200px;
}

.team-gallery img {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.team-gallery figcaption {
  margin-top: 0.5rem;
  font-weight: bold;
}















/* ================================
   Home Page Styles
================================ */

/* Hero Section */
.home-hero {
  position: relative;
  text-align: center;
  margin: 2rem auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  padding-bottom: 1rem;
}

.home-hero img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #ddd;
}

.home-hero h1 {
  font-size: 2rem;
  margin-top: 1rem;
  color: var(--primary-color);
}

.home-hero p {
  font-size: 1.2rem;
  color: var(--accent1-color);
}

/* Newsletter */
.newsletter {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 840px;
  width: 95%;
  text-align: center;
}


.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

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

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

/* Call to Action */
.cta {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: var(--accent2-color);
  max-width: 840px;
  width: 95%;
}


.cta h2 {
  margin-bottom: 0.5rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  margin-top: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

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

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

.home-grid .grid-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.home-grid img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.home-grid p {
  font-size: 1rem;
  color: var(--accent1-color);
}

/* Responsive */
@media (max-width: 880px) {
  .newsletter, .cta, .home-grid {
    width: 95%;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
}















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

/* Hero / Intro */
.trips-hero {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--accent2-color);
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 840px;
}

.trips-hero h1 {
  margin-bottom: 0.5rem;
}

/* Trip Cards */
.trip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.trip {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.trip img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Trips Table */
.trips-table {
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
}

.trips-table table {
  width: 100%;
  border-collapse: collapse;
}

.trips-table th,
.trips-table td {
  border: 1px solid #ccc;
  padding: 0.8rem;
}

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

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


.home-grid h2 {
  grid-column: 1 / -1;   /* make the heading span all columns */
  text-align: center;    /* center it nicely */
  margin-bottom: 1rem;   /* add space below the heading */
}



nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    color: #333;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #ffcc99; /* light hover effect */
    color: #333;
}

nav ul li a.active {
    background-color: #ff6600; /* highlight current page */
    color: white;
}




nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    color: #333;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #ffcc99; /* light hover effect */
    color: #333;
}

nav ul li a.active {
    background-color: #ff6600; /* highlight current page */
    color: white;
}






/* Mobile styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* stack nav items vertically */
        padding: 0;
    }

    .home-grid {
        display: block; /* stack grid items */
    }

    .home-hero img {
        width: 100%; /* image fits screen */
        height: auto;
    }
}
