/* =========================================================
   Anuradhapura Tuk Tuk Tours — Main Stylesheet
   ========================================================= */

/* Google Fonts are loaded in the HTML <head> */

:root {
  --stone:       #5C4A1E;
  --stone-light: #7A6330;
  --stone-dark:  #332910;
  --saffron:     #E07B00;
  --saffron-dark:#B86200;
  --parchment:   #FAF5E9;
  --parch-mid:   #F0E8D0;
  --lotus:       #C45C3A;
  --white-dagoba:#F9F6EE;
  --charcoal:    #1C1810;
  --slate:       #5A4F3A;
  --white:       #ffffff;
  --border:      rgba(92,74,30,0.14);
  --shadow-card: 0 4px 28px rgba(92,74,30,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--parchment);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--stone-dark);
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 110%, rgba(224,123,0,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 65% 50% at 12% 0%, rgba(122,99,48,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 0%, rgba(51,41,16,0.75) 0%, transparent 60%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='30' cy='30' r='12' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,123,0,0.16); border: 1px solid rgba(224,123,0,0.38);
  color: #ffcc80; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 7px 18px; border-radius: 50px;
  margin-bottom: 28px; animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title span { color: var(--saffron); }
.hero-title em   { font-style: italic; color: #d4b87a; }
.hero-sub {
  font-size: clamp(0.98rem, 2vw, 1.14rem);
  color: rgba(255,255,255,0.66);
  max-width: 580px; margin: 0 auto 40px; font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--saffron); color: var(--white); font-weight: 700; font-size: 0.94rem;
  padding: 14px 32px; border-radius: 8px; border: none; cursor: pointer;
  text-decoration: none; display: inline-block; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(224,123,0,0.38);
}
.btn-primary:hover { background: var(--saffron-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(224,123,0,0.48); }

.btn-outline {
  background: transparent; color: var(--white); font-weight: 600; font-size: 0.94rem;
  padding: 13px 30px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.32);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.07); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 44px; justify-content: center; margin-top: 56px; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.45s ease both;
}
.stat { text-align: center; }
.stat-num { font-family: 'IM Fell English', serif; font-size: 2.1rem; color: var(--saffron); line-height: 1; }
.stat-label { font-size: 0.73rem; color: rgba(255,255,255,0.44); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.34); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-dot {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.38), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── VEHICLE STRIP ────────────────────────────────────── */
.vehicle-strip {
  background: var(--stone); padding: 18px 24px;
  display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
}
.vehicle-strip span  { color: rgba(255,255,255,0.64); font-size: 0.81rem; letter-spacing: 0.08em; text-transform: uppercase; }
.vehicle-strip strong{ color: #ffcc80; font-size: 0.84rem; }
.v-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 50%; }

/* ── DRESS CODE BANNER ────────────────────────────────── */
.dress-banner {
  background: rgba(196,92,58,0.08);
  border-top: 3px solid var(--lotus);
  border-bottom: 1px solid rgba(196,92,58,0.2);
  padding: 14px 24px;
  display: flex; align-items: flex-start; justify-content: center; gap: 12px;
  font-size: 0.83rem; color: #6b2310; line-height: 1.6; text-align: center;
}
.dress-banner strong { color: var(--lotus); }

/* ── SECTION ──────────────────────────────────────────── */
.section { padding: 88px 20px; }
.section-inner { max-width: 1140px; margin: 0 auto; }

.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--stone); background: rgba(92,74,30,0.09);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
.section-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 400; color: var(--stone-dark); line-height: 1.14;
  margin-bottom: 16px; letter-spacing: 0.01em;
}
.section-desc { font-size: 1rem; color: var(--slate); max-width: 600px; line-height: 1.72; }

/* ── TABS ─────────────────────────────────────────────── */
.tabs-wrap { margin-bottom: 48px; }
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(92,74,30,0.07); padding: 6px; border-radius: 12px; width: fit-content;
}
.tab {
  padding: 10px 22px; border-radius: 8px; border: none;
  background: transparent; color: var(--slate);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.87rem;
  cursor: pointer; transition: all 0.22s; white-space: nowrap;
}
.tab.active, .tab:hover { background: var(--stone); color: var(--white); }
.tab.active { box-shadow: 0 2px 12px rgba(92,74,30,0.28); }

/* ── GRID ─────────────────────────────────────────────── */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }

/* ── CARD ─────────────────────────────────────────────── */
.pkg-card {
  background: var(--white-dagoba); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s; border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: 0 18px 52px rgba(92,74,30,0.18); }

.pkg-img-frame {
  position: relative; height: 220px; background: var(--stone-dark);
  overflow: hidden; display: block; text-decoration: none; cursor: pointer;
}
.pkg-img-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.4s, opacity 0.3s; }
.pkg-card:hover .pkg-img-frame img { transform: scale(1.05); opacity: 0.95; }

.pkg-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(145deg, var(--stone) 0%, var(--stone-dark) 100%);
}
.pkg-img-placeholder .alt-text { font-size: 0.73rem; color: rgba(255,255,255,0.42); text-align: center; padding: 0 26px; font-style: italic; line-height: 1.55; }
.pkg-img-placeholder .img-icon {
  width: 48px; height: 48px; border: 1.5px dashed rgba(255,255,255,0.24); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.34);
}

.pkg-badge {
  position: absolute; top: 16px; left: 16px; background: var(--saffron); color: var(--white);
  font-weight: 700; font-size: 0.71rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px; z-index: 2;
}
.pkg-price-badge {
  position: absolute; top: 16px; right: 16px; background: rgba(51,41,16,0.88); color: var(--white);
  font-weight: 700; font-size: 1.1rem; padding: 7px 14px; border-radius: 10px; z-index: 2;
  border: 1px solid rgba(255,255,255,0.1); line-height: 1.2; text-align: right; backdrop-filter: blur(4px);
}
.pkg-price-badge small { display: block; font-size: 0.64rem; font-weight: 400; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }

/* Card body */
.pkg-body { padding: 26px 26px 18px; flex: 1; display: flex; flex-direction: column; }
.pkg-name { font-family: 'IM Fell English', serif; font-size: 1.45rem; font-weight: 400; color: var(--stone-dark); margin-bottom: 4px; line-height: 1.22; letter-spacing: 0.01em; }
.pkg-focus { font-size: 0.8rem; font-style: italic; color: var(--stone-light); margin-bottom: 5px; }
.pkg-tagline { font-size: 0.83rem; color: var(--slate); margin-bottom: 20px; }
.pkg-meta { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-pill { display: flex; align-items: center; gap: 5px; font-size: 0.77rem; font-weight: 600; color: var(--stone); background: rgba(92,74,30,0.08); padding: 5px 12px; border-radius: 50px; }

/* Stops */
.stops-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--slate); margin-bottom: 12px; }
.stops-list { list-style: none; margin-bottom: 20px; }
.stops-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(92,74,30,0.08); font-size: 0.85rem; color: var(--charcoal); cursor: pointer; user-select: none; }
.stops-list li:last-child { border-bottom: none; }
.stop-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); flex-shrink: 0; margin-top: 5px; transition: background 0.2s; }
.stops-list li:hover .stop-dot { background: var(--saffron); }
.stop-info { flex: 1; }
.stop-name { font-weight: 600; color: var(--stone-dark); line-height: 1.3; }
.stop-time { font-size: 0.76rem; color: var(--slate); margin-top: 2px; }
.stop-detail { max-height: 0; overflow: hidden; transition: max-height 0.34s ease; }
.stop-detail.open { max-height: 360px; }
.stop-detail-inner { padding: 8px 0 4px 10px; border-left: 2px solid rgba(92,74,30,0.15); margin-top: 6px; }
.detail-row { display: flex; gap: 6px; margin-bottom: 4px; align-items: flex-start; font-size: 0.79rem; }
.detail-key { font-weight: 700; color: var(--stone); white-space: nowrap; flex-shrink: 0; }
.detail-val { color: var(--slate); line-height: 1.55; }

/* Dress code note */
.dress-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(196,92,58,0.07); border: 1px solid rgba(196,92,58,0.22);
  border-radius: 10px; padding: 11px 14px; margin-bottom: 16px;
  font-size: 0.79rem; color: #6b2310; line-height: 1.6;
}
.dress-note strong { color: var(--lotus); }
.dress-note svg { flex-shrink: 0; margin-top: 1px; }

/* Extras */
.extras-block {
  background: rgba(92,74,30,0.045); border-radius: 10px; padding: 13px 15px; margin-bottom: 18px;
  font-size: 0.79rem; color: var(--slate); border: 1px dashed rgba(92,74,30,0.15); line-height: 1.6;
}
.extras-block strong { color: var(--stone); }

/* Dropoff */
.dropoff-block { font-size: 0.78rem; color: var(--slate); margin-bottom: 18px; }
.dropoff-block strong { color: var(--charcoal); }

/* Footer */
.pkg-footer { padding: 0 26px 24px; }
.book-btn {
  display: block; width: 100%; background: var(--saffron); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.92rem;
  padding: 14px; border-radius: 10px; border: none; cursor: pointer;
  text-align: center; text-decoration: none; letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(224,123,0,0.3);
}
.book-btn:hover { background: var(--saffron-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,123,0,0.4); }

/* ── INFO SECTION ─────────────────────────────────────── */
.info-section { background: var(--stone); padding: 72px 20px; }
.info-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.info-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px 24px; transition: background 0.2s;
}
.info-card:hover { background: rgba(255,255,255,0.11); }
.info-icon { width: 46px; height: 46px; background: rgba(224,123,0,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card h3 { font-family: 'IM Fell English', serif; font-size: 1.12rem; color: var(--white); margin-bottom: 8px; letter-spacing: 0.01em; }
.info-card p  { font-size: 0.83rem; color: rgba(255,255,255,0.56); line-height: 1.65; }

/* ── PRICING ──────────────────────────────────────────── */
.pricing-section { background: var(--parchment); padding: 88px 20px; }
.pricing-inner   { max-width: 880px; margin: 0 auto; }

.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card);
  margin-top: 36px; background: var(--white-dagoba);
}
.price-table thead tr { background: var(--stone); }
.price-table thead th { color: var(--white); font-size: 0.77rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 16px 20px; text-align: left; }
.price-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.price-table tbody tr:hover { background: rgba(92,74,30,0.04); }
.price-table tbody tr:last-child { border-bottom: none; }
.price-table td { padding: 15px 20px; font-size: 0.87rem; color: var(--charcoal); vertical-align: middle; }
.price-tag { display: inline-block; background: var(--saffron); color: var(--white); font-weight: 700; padding: 4px 12px; border-radius: 6px; font-size: 0.9rem; white-space: nowrap; }

.notice {
  background: rgba(92,74,30,0.07); border: 1px solid rgba(92,74,30,0.18);
  border-radius: 10px; padding: 13px 18px; font-size: 0.81rem; color: var(--stone-dark);
  margin-bottom: 36px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.6;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.82; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   ══════════════════════════════════════════════════════════ */

/* ── Ultra-wide (2560px+) ─────────────────────────────── */
@media (min-width: 2560px) {
  .section-inner,
  .pricing-inner,
  .info-grid { max-width: 1400px; }
  .hero-title { font-size: 6rem; }
  .pkg-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Large Desktop (1440px – 2559px) ─────────────────── */
@media (min-width: 1440px) and (max-width: 2559px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Medium Desktop (1200px – 1439px) ────────────────── */
@media (min-width: 1200px) and (max-width: 1439px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Small Desktop / Large Tablet (1024px – 1199px) ─── */
@media (min-width: 1024px) and (max-width: 1199px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet Landscape (768px – 1023px) ───────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { min-height: 80vh; padding: 50px 24px 70px; }
  .hero-stats { gap: 28px; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 20px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; font-size: 0.83rem; padding: 10px 14px; }
  .vehicle-strip { gap: 18px; padding: 16px 20px; }
  .pricing-section { padding: 64px 20px; }
}

/* ── Tablet Portrait (600px – 767px) ─────────────────── */
@media (min-width: 600px) and (max-width: 767px) {
  .hero { min-height: 75vh; padding: 44px 20px 64px; }
  .hero-title { font-size: 2.8rem; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.7rem; }
  .pkg-grid { grid-template-columns: 1fr; gap: 20px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 16px; }
  .section-title { font-size: 2rem; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; font-size: 0.8rem; padding: 9px 10px; }
  .vehicle-strip { gap: 12px; padding: 14px 16px; font-size: 0.78rem; }
  .v-dot { display: none; }
  .price-table thead th,
  .price-table td { padding: 12px 14px; font-size: 0.82rem; }
  .pricing-section { padding: 56px 16px; }
}

/* ── Mobile (up to 599px) ─────────────────────────────── */
@media (max-width: 599px) {
  .hero { min-height: auto; padding: 48px 16px 64px; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 2.8rem); line-height: 1.15; }
  .hero-sub { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary,
  .btn-outline { width: 100%; max-width: 320px; text-align: center; }
  .hero-stats { gap: 16px; margin-top: 40px; }
  .stat-num { font-size: 1.55rem; }
  .stat-label { font-size: 0.68rem; }

  .vehicle-strip { flex-direction: column; gap: 6px; padding: 14px 16px; text-align: center; }
  .v-dot { display: none; }
  .vehicle-strip span { font-size: 0.78rem; }

  .dress-banner { padding: 12px 16px; font-size: 0.79rem; }

  .section { padding: 48px 14px; }
  .section-title { font-size: 1.85rem; }
  .section-desc { font-size: 0.93rem; }

  .tabs-wrap { margin-bottom: 32px; }
  .tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tab { font-size: 0.78rem; padding: 9px 8px; text-align: center; }

  .pkg-grid { grid-template-columns: 1fr; gap: 18px; }
  .pkg-img-frame { height: 185px; }
  .pkg-body { padding: 20px 18px 14px; }
  .pkg-name { font-size: 1.28rem; }
  .pkg-footer { padding: 0 18px 18px; }

  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-card { padding: 22px 18px; }

  .pricing-section { padding: 48px 14px; }
  .price-table { font-size: 0.8rem; border-radius: 12px; }
  .price-table thead th,
  .price-table td { padding: 10px 12px; font-size: 0.78rem; }
  /* Stack table on very small screens */
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table td {
    position: relative;
    padding: 8px 12px 8px 42%;
    border-bottom: 1px solid var(--border);
  }
  .price-table td::before {
    content: attr(data-label);
    position: absolute; left: 12px; top: 8px;
    font-weight: 700; color: var(--stone); font-size: 0.74rem;
    text-transform: uppercase; letter-spacing: 0.07em;
    width: 38%;
  }
  .price-table td:last-child { border-bottom: none; }
  .price-table tbody tr { border-bottom: 2px solid var(--parch-mid); margin-bottom: 2px; }

  .notice { font-size: 0.78rem; padding: 11px 14px; }

  footer { padding: 40px 16px 24px; }
  .footer-logo { font-size: 1.5rem; }
  .footer-links { gap: 14px; }
}

/* ── Very small phones (up to 380px) ─────────────────── */
@media (max-width: 380px) {
  .hero-title { font-size: 1.95rem; }
  .hero-badge { font-size: 0.68rem; padding: 6px 14px; }
  .tabs { grid-template-columns: 1fr; }
  .tab { font-size: 0.82rem; }
  .stat-num { font-size: 1.35rem; }
  .pkg-name { font-size: 1.15rem; }
}