/* ============================================================
   River Rafting In Rishikesh – Main Stylesheet
   Author: RaftingRishikesh.in
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:   #0077b6;
  --primary-d: #005f8e;
  --accent:    #f77f00;
  --accent-d:  #d46b00;
  --dark:      #1a1a2e;
  --mid:       #444;
  --light:     #f5f7fa;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 4px 18px rgba(0,0,0,.12);
  --transition:0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; top: -50px; left: 0;
  background: var(--primary); color: #fff;
  padding: 8px 14px; border-radius: 0 0 var(--radius) 0;
  transition: top .2s;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.35rem; font-weight: 800;
  color: var(--primary); display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--accent); }

nav ul {
  display: flex; gap: 4px; align-items: center;
}
nav ul li a {
  padding: 6px 12px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500;
  color: var(--dark);
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--primary); color: var(--white);
}
.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-d) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 6px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media(max-width:768px){
  .hamburger { display: flex; }
  nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); padding: 16px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    display: none;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 4px; }
  nav ul li a { display: block; padding: 10px 14px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--light); padding: 10px 0;
  font-size: .85rem;
}
.breadcrumb .container {
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--mid); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #005f8e 0%, #0077b6 40%, #00b4d8 100%);
  color: var(--white);
  padding: 100px 20px 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff18' d='M0,160L60,170.7C120,181,240,203,360,186.7C480,171,600,117,720,117.3C840,117,960,171,1080,181.3C1200,192,1320,160,1380,144L1440,128L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  padding: 5px 16px; border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 18px; letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .9; margin-bottom: 32px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-d); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,127,0,.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* Hero stats */
.hero-stats {
  display: flex; gap: 30px; justify-content: center;
  flex-wrap: wrap; margin-top: 48px;
  position: relative;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 900; display: block;
  text-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.stat-label { font-size: .8rem; opacity: .85; letter-spacing: .5px; text-transform: uppercase; }

/* ---------- Section Helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: rgba(0,119,182,.1); color: var(--primary);
  padding: 4px 14px; border-radius: 50px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; margin-bottom: 12px;
  color: var(--dark);
}
.section-header p { max-width: 620px; margin: 0 auto; color: var(--mid); }
.bg-light { background: var(--light); }

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), #00b4d8);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.9);
}
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card-body p  { font-size: .9rem; color: var(--mid); margin-bottom: 14px; }
.card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: var(--mid);
  border-top: 1px solid #eee; padding-top: 12px;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* ---------- Route Cards ---------- */
.route-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition);
}
.route-card:hover { transform: translateY(-4px); }
.route-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), #00b4d8);
  color: var(--white);
}
.route-header h3 { font-size: 1.15rem; font-weight: 800; }
.route-badge {
  display: inline-block; margin-top: 6px;
  background: rgba(255,255,255,.25); padding: 3px 12px;
  border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.route-body { padding: 20px; }
.route-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 14px;
}
.route-stat { text-align: center; padding: 10px; background: var(--light); border-radius: 6px; }
.route-stat strong { display: block; font-size: 1.1rem; color: var(--primary); }
.route-stat small { font-size: .75rem; color: var(--mid); }
.route-price {
  font-size: 1.3rem; font-weight: 900; color: var(--accent);
  margin-bottom: 14px;
}
.route-price small { font-size: .75rem; font-weight: 400; color: var(--mid); }

/* ---------- Package Cards ---------- */
.pkg-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border-top: 4px solid var(--primary);
  transition: transform var(--transition);
}
.pkg-card.featured { border-top-color: var(--accent); }
.pkg-card:hover { transform: translateY(-5px); }
.pkg-card header { padding: 24px 20px 16px; background: var(--light); }
.pkg-card header h3 { font-size: 1.15rem; font-weight: 800; }
.pkg-card .pkg-price {
  font-size: 2rem; font-weight: 900; color: var(--primary);
  margin: 8px 0 4px;
}
.pkg-card.featured .pkg-price { color: var(--accent); }
.pkg-tag {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: 3px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.pkg-body { padding: 20px; }
.pkg-body ul li {
  padding: 6px 0; border-bottom: 1px solid #f0f0f0;
  font-size: .9rem; display: flex; gap: 8px; align-items: flex-start;
}
.pkg-body ul li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), #00b4d8);
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-dot {
  position: absolute; left: -26px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.tl-item p  { font-size: .9rem; color: var(--mid); }

/* ---------- Safety Grid ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.safety-item {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; gap: 16px;
}
.safety-icon {
  font-size: 2rem; flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(0,119,182,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.safety-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.safety-item p  { font-size: .85rem; color: var(--mid); }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid #e0e0e0; border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: var(--white); border: none;
  padding: 18px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .95rem; font-weight: 600; color: var(--dark);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--light); }
.faq-q.active { background: var(--primary); color: var(--white); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); }
.faq-q.active .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 16px 20px;
  font-size: .9rem; color: var(--mid);
  background: var(--light); line-height: 1.7;
}
.faq-a.open { display: block; }

/* ---------- Comparison Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--primary); color: var(--white); }
thead th { padding: 14px 16px; text-align: left; font-size: .9rem; }
tbody tr:nth-child(even) { background: var(--light); }
tbody td { padding: 13px 16px; font-size: .9rem; border-bottom: 1px solid #eee; }
tbody tr:last-child td { border-bottom: none; }
.highlight-row { background: rgba(247,127,0,.08) !important; font-weight: 600; }
.badge-easy   { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.badge-medium { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.badge-hard   { background: #f8d7da; color: #721c24; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; }

/* ---------- Info Box ---------- */
.info-box {
  background: rgba(0,119,182,.07); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 24px 0;
}
.info-box.warning { background: rgba(247,127,0,.07); border-color: var(--accent); }
.info-box.danger  { background: rgba(220,53,69,.07); border-color: #dc3545; }
.info-box h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.info-box p, .info-box ul { font-size: .9rem; color: var(--mid); }
.info-box ul li { padding: 3px 0; padding-left: 14px; position: relative; }
.info-box ul li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.step-item { text-align: center; padding: 24px 16px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.step-item p  { font-size: .85rem; color: var(--mid); }

/* ---------- Season Table ---------- */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.season-card {
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); text-align: center;
}
.season-card.peak  { background: linear-gradient(135deg, #d4f1f9, #a8e6cf); }
.season-card.good  { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.season-card.avoid { background: linear-gradient(135deg, #fee2e2, #fca5a5); }
.season-icon { font-size: 2.5rem; margin-bottom: 10px; }
.season-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.season-card p  { font-size: .85rem; color: #444; }

/* ---------- Contact / Booking Form ---------- */
.booking-form {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px;
  max-width: 640px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid #e0e0e0; border-radius: var(--radius);
  font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:500px){ .form-row { grid-template-columns: 1fr; } }

/* ---------- Map Placeholder ---------- */
.map-box {
  height: 300px; background: var(--light);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--mid);
  border: 2px dashed #ccc; text-align: center; padding: 20px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #00b4d8);
  color: var(--white); text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 900; margin-bottom: 12px; }
.cta-banner p  { font-size: 1.05rem; opacity: .9; margin-bottom: 28px; }

/* ---------- Related Pages ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-link {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; font-weight: 600; color: var(--dark);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.related-link:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.14); color: var(--primary); }
.related-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--dark); color: #bbb;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white); font-size: .95rem; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #bbb; font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 0; text-align: center;
  font-size: .82rem; color: #777;
}
.footer-bottom a { color: var(--accent); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 60%, #00b4d8 100%);
  color: var(--white); padding: 70px 20px 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900; margin-bottom: 12px;
}
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 640px; margin: 0 auto; }

/* ---------- Checklist ---------- */
.checklist { columns: 2; gap: 20px; }
@media(max-width:600px){ .checklist { columns: 1; } }
.checklist li {
  break-inside: avoid; padding: 8px 0;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem;
}
.checklist li::before { content: '✅'; flex-shrink: 0; }

/* ---------- Highlight Cards ---------- */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.hl-card {
  text-align: center; padding: 28px 20px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.hl-card:hover { transform: translateY(-4px); }
.hl-icon { font-size: 2.4rem; margin-bottom: 12px; }
.hl-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.hl-card p  { font-size: .85rem; color: var(--mid); }

/* ---------- Testimonials ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.stars { color: #fbbf24; font-size: 1rem; margin-bottom: 10px; }
.review-card p { font-size: .9rem; color: var(--mid); margin-bottom: 14px; font-style: italic; }
.reviewer { font-weight: 700; font-size: .88rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
@media(max-width:768px){ .two-col { grid-template-columns: 1fr; } }

/* ---------- Scroll to top ---------- */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--primary); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  z-index: 888;
}
#back-to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Progress Bar ---------- */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--accent); z-index: 9999; width: 0%;
  transition: width .1s linear;
}

/* ---------- Responsive ---------- */
@media(max-width:768px){
  section { padding: 48px 0; }
  .hero { padding: 70px 20px 60px; }
  .booking-form { padding: 24px; }
}
