/* ============================================================
   MY SRI LANKAN GUIDE — DESIGN SYSTEM
   Palette inspired by Ceylon tea estates, cinnamon bark, spice
   markets and the Indian Ocean coastline.
   ============================================================ */

:root{
  /* ---- Color tokens ---- */
  --color-ocean-deep:   #0E3B36;   /* deep tea-estate green, header/footer/dark sections */
  --color-ocean-mid:    #155349;
  --color-cinnamon:     #B5651D;   /* spice accent, links/secondary accents */
  --color-sunset:       #E4572E;   /* primary CTA — warm coral/sunset */
  --color-sand:         #F1EAD9;   /* warm neutral background */
  --color-sand-deep:    #E7DBBF;
  --color-paper:        #FFFDF8;   /* card / surface background */
  --color-ink:          #1C1B18;   /* body text */
  --color-ink-soft:     #55524A;   /* secondary text */
  --color-gold:         #C99A3E;   /* small highlight, ratings */
  --color-border:       #E3D9C4;
  --color-success:      #2E6B4F;
  --color-error:        #B3261E;

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);

  /* ---- Layout ---- */
  --content-max: 1200px;
  --content-narrow: 760px;
  --radius-card: 14px;
  --radius-small: 8px;
  --shadow-card: 0 8px 24px rgba(14, 59, 54, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(14, 59, 54, 0.14);
}

/* ---- Reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-sand);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  color: var(--color-ocean-deep);
}
h1{ font-size: var(--step-4); }
h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); }
h4{ font-size: var(--step-1); }
p{ margin: 0 0 1em; color: var(--color-ink-soft); max-width: 68ch; }
.container{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow{
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 72px 0; }
@media (max-width: 640px){
  section{ padding: 48px 0; }
}
.section-head{
  max-width: 620px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-head.in-view{ opacity: 1; transform: translateY(0); }
.section-head p{ margin-bottom: 0; }
.section-head-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head-row .section-head{ margin-bottom: 0; }
.bg-deep{ background: var(--color-ocean-deep); color: #fff; }
.bg-deep h2, .bg-deep h3, .bg-deep h4{ color: #fff; }
.bg-deep p{ color: rgba(255,255,255,0.78); }
.bg-paper{ background: var(--color-paper); }

/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--color-sunset);
  color: #fff;
}
.btn-primary:hover{ background: #cf4a20; box-shadow: var(--shadow-card-hover); }
.btn-secondary{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover{ background: rgba(255,255,255,0.12); }
.btn-outline{
  background: transparent;
  border-color: var(--color-ocean-deep);
  color: var(--color-ocean-deep);
}
.btn-outline:hover{ background: var(--color-ocean-deep); color: #fff; }
.btn-whatsapp{
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover{ background: #1ebc59; }
.btn-block{ width: 100%; justify-content: center; }
.btn-sm{ padding: 10px 18px; font-size: 0.85rem; }

/* ---- Header / Nav ---- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled{
  box-shadow: 0 6px 18px rgba(14,59,54,0.08);
}
.nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.brand{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-ocean-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand span{ color: var(--color-cinnamon); }
.nav-links{
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a{
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover{ color: var(--color-cinnamon); }
.nav-links a.active{ color: var(--color-cinnamon); }
.nav-cta{ display: flex; align-items: center; gap: 14px; }
.nav-toggle{
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle svg{ width: 26px; height: 26px; }

@media (max-width: 920px){
  .nav-links{
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--color-paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,0.12);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .nav-cta .btn-outline{ display: none; }
}

/* ---- Hero ---- */
.hero{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(14,59,54,0.35) 0%, rgba(14,59,54,0.75) 100%), var(--color-ocean-deep);
  background-size: cover;
  background-position: center;
}
.hero-inner{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}
.hero-eyebrow{
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  margin-bottom: 14px;
  font-weight: 600;
  opacity: 0;
  animation: fadeRise 0.7s ease forwards;
}
.hero h1{
  color: #fff;
  max-width: 14ch;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeRise 0.8s ease forwards;
  animation-delay: 0.12s;
}
.hero p{
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 50ch;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeRise 0.8s ease forwards;
  animation-delay: 0.24s;
}
.hero-ctas{
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeRise 0.8s ease forwards;
  animation-delay: 0.36s;
}
@keyframes fadeRise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}

.page-hero{
  min-height: 46vh;
  align-items: center;
}
.page-hero .hero-inner{ padding: 60px 24px; }
.page-hero h1{ max-width: none; margin-bottom: 10px; }

/* ---- Search bar (home) ---- */
.explore-bar{
  background: var(--color-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding: 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
}
@media (max-width: 800px){
  .explore-bar{ grid-template-columns: 1fr; margin-top: -36px; }
}
.field label{
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-ink);
}
.field input:focus, .field select:focus, textarea:focus, button:focus-visible, a:focus-visible{
  outline: 3px solid rgba(180,101,29,0.35);
  outline-offset: 2px;
}

/* ---- Card grids ---- */
.grid{
  display: grid;
  gap: 26px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--color-paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover{ box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.card-media{
  aspect-ratio: 4/3;
  background: var(--color-sand-deep);
  overflow: hidden;
}
.card-media img{ width: 100%; height: 100%; object-fit: cover; }
.card-body{ padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tag{
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cinnamon);
}
.card-body h3{ font-size: 1.15rem; margin-bottom: 4px; }
.card-body p{ font-size: 0.92rem; margin-bottom: 0; }
.card-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.card-price{ font-weight: 700; color: var(--color-ocean-deep); font-size: 1rem; }
.card-price small{ font-weight: 400; color: var(--color-ink-soft); }

/* ---- Why-us / feature blocks ---- */
.feature{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(180,101,29,0.12);
  color: var(--color-cinnamon);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature h4{ margin-bottom: 4px; font-size: 1.05rem; }
.feature p{ font-size: 0.92rem; margin-bottom: 0; }

/* ---- Reviews ---- */
.review-card{
  background: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.review-stars{ color: var(--color-gold); font-size: 1rem; margin-bottom: 10px; }
.review-name{ font-weight: 700; margin-top: 12px; }
.review-meta{ font-size: 0.82rem; color: var(--color-ink-soft); }
.demo-tag{
  display: inline-block;
  font-size: 0.7rem;
  background: var(--color-sand-deep);
  color: var(--color-ink-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---- Newsletter ---- */
.newsletter-box{
  background: var(--color-ocean-deep);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-box h3{ color: #fff; margin-bottom: 6px; }
.newsletter-box p{ color: rgba(255,255,255,0.75); margin-bottom: 0; }
.newsletter-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input{
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  min-width: 240px;
}

/* ---- Footer ---- */
.site-footer{ background: var(--color-ocean-deep); color: rgba(255,255,255,0.8); padding: 64px 0 24px; }
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-grid h5{ color: #fff; font-size: 0.9rem; margin-bottom: 16px; font-weight: 600; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a:hover{ color: #fff; }
.footer-brand p{ color: rgba(255,255,255,0.7); font-size: 0.9rem; max-width: 30ch; }
.footer-social{ display: flex; gap: 12px; margin-top: 16px; }
.footer-social a{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom ul{ display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- WhatsApp floating button ---- */
.whatsapp-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.whatsapp-float svg{ width: 30px; height: 30px; fill: #fff; }

/* ---- Breadcrumbs ---- */
.breadcrumbs{
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.breadcrumbs a:hover{ color: var(--color-cinnamon); }
.breadcrumbs .sep{ margin: 0 6px; }

/* ---- Content / prose pages ---- */
.prose h2{ margin-top: 1.4em; }
.prose h3{ margin-top: 1.2em; }
.prose ul{ list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ul li{ margin-bottom: 0.4em; color: var(--color-ink-soft); }
.two-col{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}
.info-box{
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 20px;
}
.info-box h4{ font-size: 0.95rem; margin-bottom: 10px; }
.info-list{ font-size: 0.9rem; }
.info-list li{
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink-soft);
}
.info-list li:last-child{ border-bottom: none; }
.info-list li strong{ color: var(--color-ink); font-weight: 600; }

.tag-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill{
  background: var(--color-sand-deep);
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.pill.active{ background: var(--color-cinnamon); color: #fff; }

.gallery-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 700px){ .gallery-strip{ grid-template-columns: repeat(2,1fr); } }
.gallery-strip img{ border-radius: var(--radius-small); aspect-ratio: 1; object-fit: cover; }

.map-embed{
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-embed iframe{ width: 100%; height: 340px; border: 0; display: block; }

/* ---- Itinerary / steps ---- */
.itinerary-day{
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}
.itinerary-day:last-child{ border-bottom: none; }
.itinerary-day .day-num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-cinnamon);
  flex-shrink: 0;
  width: 70px;
}
.faq-item{
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--color-ocean-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content: "+"; font-size: 1.3rem; color: var(--color-cinnamon); display: inline-block; transition: transform 0.25s ease; }
.faq-item[open] summary::after{ content: "+"; transform: rotate(45deg); }
.faq-item p{ margin-top: 12px; }

/* ---- Forms ---- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }
.form-grid .full{ grid-column: 1 / -1; }
.checkbox-group{ display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-chip{
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  background: #fff;
}
.checkbox-chip input{ display: none; }
.checkbox-chip:has(input:checked){
  background: var(--color-cinnamon);
  color: #fff;
  border-color: var(--color-cinnamon);
}
.form-status{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  display: none;
}
.form-status.success{ display: block; background: rgba(46,107,79,0.12); color: var(--color-success); }
.form-status.error{ display: block; background: rgba(179,38,30,0.1); color: var(--color-error); }

/* ---- Booking summary ---- */
.booking-steps{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.booking-steps span{
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-sand-deep);
  color: var(--color-ink-soft);
}
.booking-steps span.active{ background: var(--color-ocean-deep); color: #fff; }
.summary-row{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.summary-row.total{ font-weight: 700; font-size: 1.1rem; border-bottom: none; color: var(--color-ocean-deep); transition: color 0.2s ease; }
.summary-row.total.pulse{ animation: pulseTotal 0.4s ease; }
@keyframes pulseTotal{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.04); color: var(--color-sunset); }
  100%{ transform: scale(1); }
}

/* ---- Sticky booking panel ---- */
.sticky-panel{ position: sticky; top: 100px; }

/* ---- Utility ---- */
.mt-0{ margin-top: 0; } .mb-0{ margin-bottom: 0; }
.text-center{ text-align: center; margin-left: auto; margin-right: auto; }
.small{ font-size: 0.85rem; }
.muted{ color: var(--color-ink-soft); }
.cta-banner{
  background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean-mid));
  color: #fff;
  border-radius: var(--radius-card);
  padding: 56px;
  text-align: center;
}
.cta-banner h2{ color: #fff; }
.cta-banner p{ color: rgba(255,255,255,0.8); margin: 0 auto 24px; }
.cta-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.error-page{
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page .code{
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--color-cinnamon);
  line-height: 1;
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-ocean-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: var(--radius-small);
}
.skip-link:focus{ left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
