/* ---------------------------------------------
   rafting.css — shared across site
--------------------------------------------- */

/* variables & reset */
:root{
  --primary:#0b4f6c;
  --accent:#f8f9fa;
  --muted:#6b7b84;
  --content-w: 840px;
}
*,
*::before,
*::after { box-sizing:border-box; margin:0; padding:0; }

html,body{height:100%}
body{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color:var(--primary);
  background: #fff;
  line-height:1.5;
}

/* Utility */
.container{max-width:var(--content-w);margin:0 auto;padding:1rem}

/* VISUALLY-HIDDEN (accessible labels) */
.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* HEADER */
header{
  display:grid;
  grid-template-columns: auto 1fr;
  align-items:center;
  gap:1rem;
  background:var(--accent);
  padding:1rem;
  border-bottom:2px solid var(--primary);
}
.logo{width:150px; height:auto; display:block}

/* nav (flex) */
nav{
  display:flex; justify-content:flex-end; gap:1rem; align-items:center;
}
nav a{
  text-decoration:none; color:var(--primary); font-weight:700;
  padding:0.4rem 0.75rem; border-radius:4px;
}
nav a:hover{background:var(--primary); color:var(--accent)}

/* HERO (full width image with overlay) */
.hero{position:relative; width:100%; overflow:hidden}
.hero-home .hero-img{width:100%; height: 420px; object-fit:cover; display:block}
.hero-img{display:block;width:100%}
.hero h1{
  position:absolute; left:2rem; top:2.25rem;
  background: rgba(11,79,108,0.8); color:#fff; padding:0.6rem 1rem;
  border-radius:6px; font-size:1.8rem; max-width:60%;
}

/* Hero article overlay + image float */
.hero article {
  position: absolute; 
  top: 50%; 
  left: 2rem; 
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  padding: 1rem;
  border-radius: 6px;
  max-width: 45%;
}

.hero article img {
  float: right;
  width: 120px;
  height: auto;
  margin-left: 1rem;
  border-radius: 4px;
}

/* hero CTA box */
.hero-cta{position:absolute; right:2rem; bottom:2rem; background:rgba(255,255,255,0.93); padding:1rem; border-radius:6px; text-align:right}
.hero-cta p{margin-bottom:0.5rem; color:var(--muted)}
.btn, .btn-outline{display:inline-block; text-decoration:none; padding:0.5rem 1rem; border-radius:6px; font-weight:700}
.btn{background:var(--primary); color:#fff}
.btn-outline{border:2px solid var(--primary); color:var(--primary); background:transparent}
.btn:hover{opacity:0.95}

/* newsletter */
.newsletter{background:#f6fbfd;border:1px solid #e6f2f6;padding:1rem;margin:1rem 0;border-radius:6px}
.newsletter-form{display:flex; gap:0.5rem; flex-wrap:wrap}
.newsletter-form input{padding:0.5rem; flex:1 1 200px; border:1px solid #ccc; border-radius:4px}
.newsletter-form button{padding:0.5rem 1rem}

/* HOME GRID (not single column) */
.home-grid{display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1rem; margin-top:1rem}
.grid-item{background:#fff; border:1px solid #eee; padding:0.75rem; border-radius:6px; text-align:left}
.grid-item img{width:100%; height:140px; object-fit:cover; border-radius:4px; margin-bottom:0.5rem}

/* CTA strip */
.cta-strip{background:linear-gradient(90deg, rgba(11,79,108,0.08), rgba(11,79,108,0.03)); padding:1rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:1.5rem}

/* MAIN container common styles */
main.container{padding-bottom:2rem}

/* TRIPS cards */
.trip-cards{display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:1rem; margin-top:1rem}
.trip{border:1px solid #e6e6e6; padding:0.5rem; border-radius:6px; background:#fff}
.trip img{width:100%; height:160px; object-fit:cover; border-radius:6px}
.trip h2{margin:0.5rem 0}
.trip p{color:var(--muted)}

/* table styling */
table{width:100%; border-collapse:collapse; margin-top:1rem}
table caption{caption-side:top; text-align:left; font-weight:700; margin-bottom:0.5rem}
table th, table td{border:1px solid #e8e8e8; padding:0.5rem; text-align:left}
thead th{background:#f3f6f7}

/* contact CTA */
.contact-cta{margin-top:1.5rem; padding:1rem; background:#fffbe6; border:1px solid #f2e6c8; border-radius:6px; display:flex; justify-content:space-between; align-items:center}

/* TRIPS table / responsive */
@media (max-width:700px){
  .hero h1{font-size:1.25rem; left:1rem; max-width:80%}
  .hero-cta{right:1rem; left:1rem; text-align:center}
  .newsletter-form{flex-direction:column}
  .cta-strip{flex-direction:column; gap:0.5rem}
  table, thead, tbody, th, td, tr{display:block}
  thead tr{display:none}
  table td{display:flex; justify-content:space-between; padding:0.5rem 0}
  table td::before{content:attr(data-label); font-weight:700}
}

/* FOOTER */
footer{
  display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; background:var(--accent);
  border-top:2px solid var(--primary); margin-top:2rem;
}
footer p{color:var(--primary); font-weight:600}
.socialmedia{display:flex; gap:0.5rem}
.socialmedia img{width:30px; height:auto}

/* accessibility color tweaks for contrast */
a, button{outline-color:var(--primary)}
