/* Chilika Boat Co. — modern, animated landing page
   The hero scene is lit by the chosen departure time; flamingo pink is the
   brand accent (Chilika's best-known visitors). */
:root {
  --brand: #E0607E;
  --brand-deep: #BC4461;
  --brand-soft: #FCE6EC;
  --brand-ink: #FFFFFF;

  --bg: #F3F8F8;
  --card: #FFFFFF;
  --ink: #0F2A33;
  --muted: #4E6A72;
  --line: #D3E1E3;
  --lake: #1D6E7E;

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
h1, h2, h3, .logo { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 26px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-wide { width: 100%; }

/* ---------- hero scene: one data-time attribute relights everything ---------- */
.hero { position: relative; min-height: min(96vh, 860px); display: flex; flex-direction: column; color: #fff; overflow: hidden;
  --t: 1.4s; }
.hero[data-time="sunrise"] { --sky1: #34467A; --sky2: #E48A78; --sky3: #F8CB8E; --sunc: #FFE1A8; --hill: #4B4466; --lake1: #E6A48C; --lake2: #33506F; --sx: 330px; --sy: 300px; --shade: rgba(20, 22, 48, .55); }
.hero[data-time="morning"] { --sky1: #4F9ED3; --sky2: #A9D6EE; --sky3: #E4F4FA; --sunc: #FFF7DC; --hill: #58787F; --lake1: #86C1CF; --lake2: #1E6273; --sx: 760px; --sy: 150px; --shade: rgba(8, 40, 52, .55); }
.hero[data-time="sunset"]  { --sky1: #2B2758; --sky2: #C24E78; --sky3: #F49A57; --sunc: #FFB86E; --hill: #372A48; --lake1: #D7806A; --lake2: #282F4E; --sx: 1110px; --sy: 290px; --shade: rgba(28, 16, 40, .55); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-top { stop-color: var(--sky1); transition: stop-color var(--t); }
.s-mid { stop-color: var(--sky2); transition: stop-color var(--t); }
.s-low { stop-color: var(--sky3); transition: stop-color var(--t); }
.l-top { stop-color: var(--lake1); transition: stop-color var(--t); }
.l-low { stop-color: var(--lake2); transition: stop-color var(--t); }
.sun-glow { stop-color: var(--sunc); transition: stop-color var(--t); }
.sun { transform: translate(var(--sx), var(--sy)); transition: transform var(--t) cubic-bezier(.4, 0, .2, 1); }
.sun-disc { fill: var(--sunc); transition: fill var(--t); }
.hills, .island path { fill: var(--hill); transition: fill var(--t); }
.reflect { transform: translateX(var(--sx)); transition: transform var(--t) cubic-bezier(.4, 0, .2, 1); }
.reflect path { stroke: var(--sunc); stroke-width: 3; stroke-linecap: round; opacity: .55; animation: shimmer 3s ease-in-out infinite alternate; }
.reflect path:nth-child(2n) { animation-delay: -1.3s; }
@keyframes shimmer { to { opacity: .12; } }
.ripples path { stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-linecap: round; }
.ripples { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-60px); } }
.boat path, .boat circle { fill: #15202E; }
.boat .pole { fill: none; stroke: #15202E; }
.boat { animation: sail 70s linear infinite; }
@keyframes sail { from { transform: translate(-200px, 612px); } to { transform: translate(1640px, 612px); } }
.dolphin path { fill: #3E4B5A; }
.dolphin { animation: surface 9s ease-in-out infinite; opacity: 0; }
@keyframes surface {
  0%, 60%  { transform: translate(0, 46px) rotate(-32deg); opacity: 0; }
  64%      { transform: translate(10px, 14px) rotate(-30deg); opacity: 1; }
  73%      { transform: translate(58px, -16px) rotate(0deg); opacity: 1; }
  82%      { transform: translate(106px, 12px) rotate(32deg); opacity: 1; }
  88%, 100% { transform: translate(118px, 50px) rotate(40deg); opacity: 0; }
}
.splash { fill: rgba(255, 255, 255, .7); opacity: 0; transform-box: fill-box; transform-origin: center; }
.splash.s1 { animation: splash 9s ease-out infinite; animation-delay: 5.6s; }
.splash.s2 { animation: splash 9s ease-out infinite; animation-delay: 7.4s; }
@keyframes splash { 0% { opacity: .9; transform: scale(.4); } 10% { opacity: 0; transform: scale(1.4); } 100% { opacity: 0; } }
.birds path { fill: none; stroke: #1E2230; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.birds { animation: flock 48s linear infinite; }
@keyframes flock { from { transform: translateX(-260px); } to { transform: translateX(1500px); } }
.bird { animation: flap .9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes flap { to { transform: scaleY(.55); } }

.header { position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.logo { font-size: 1.1rem; text-decoration: none; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-copy { position: relative; z-index: 2; margin-top: auto; width: 100%; padding-top: 40px; padding-bottom: 64px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, var(--shade), transparent); transition: background var(--t); pointer-events: none; }
.times { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 22px; }
.times button { border: 0; border-radius: 999px; padding: 9px 16px; background: none; color: #fff; font-weight: 600; cursor: pointer; }
.times button span { font-weight: 400; opacity: .8; font-size: .84rem; margin-left: 4px; }
.times button[aria-checked="true"] { background: #fff; color: var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); max-width: 17ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.hero-meta { margin: 16px 0 24px; font-size: 1.08rem; opacity: .92; }

/* ---------- trips ---------- */
.trips { padding: 88px 0; }
.trips h2, .season h2, .safety h2, .book h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.trip { background: var(--card); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.trip-art { height: 170px; position: relative; overflow: hidden; }
.art-dolphin { background: linear-gradient(180deg, #F8CB8E 0%, #E6A48C 48%, #33506F 49%, #1E3D57 100%); }
.art-dolphin::after { content: ""; position: absolute; left: 44%; top: 44%; width: 70px; height: 22px; background: #3E4B5A; border-radius: 60% 60% 10% 10% / 100% 100% 0 0; }
.art-birds { background: linear-gradient(180deg, #A9D6EE, #E4F4FA 55%, #86C1CF 56%, #1E6273); }
.art-birds::after { content: ""; position: absolute; left: 30%; top: 38%; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 30px 8px 0 var(--brand), 62px -4px 0 var(--brand), 94px 10px 0 var(--brand), 126px 2px 0 var(--brand); }
.art-sea { background: linear-gradient(180deg, #6FB0D8, #CFE9F4 50%, #EAD9B6 51%, #EAD9B6 70%, #2C7488 71%); }
.trip-body { padding: 22px 22px 24px; }
.trip h3 { font-size: 1.15rem; margin-bottom: 8px; }
.trip p { color: var(--muted); }
.trip-meta { margin-top: 12px; font-weight: 600; color: var(--ink) !important; }

/* ---------- season calendar ---------- */
.season { padding: 88px 0; background: var(--card); }
.sub { color: var(--muted); margin: 8px 0 26px; }
.calendar { display: grid; grid-template-columns: 140px repeat(12, 1fr); gap: 4px; overflow-x: auto; }
.calendar .cell { height: 44px; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; }
.calendar .head { height: 28px; font-weight: 600; color: var(--muted); }
.calendar .head.now { color: var(--brand-deep); }
.calendar .label { justify-content: start; place-items: center start; font-weight: 600; }
.lv0 { background: #EEF4F4; }
.lv1 { background: color-mix(in srgb, var(--lake) 25%, #fff); }
.lv2 { background: color-mix(in srgb, var(--lake) 55%, #fff); }
.lv3 { background: var(--lake); }
.calendar .now-col { box-shadow: inset 0 0 0 2px var(--brand); }
.note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* ---------- safety ---------- */
.safety { padding: 88px 0; }
.safety-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.points li { border-top: 2px solid var(--ink); padding-top: 14px; }
.points h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 4px; }
.points p { color: var(--muted); }

/* ---------- booking ---------- */
.book { padding: 88px 0; background: var(--lake); color: #EAF5F7; }
.book h2 { color: #fff; }
.book .sub { color: #BFE0E7; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.book-form { background: var(--card); color: var(--ink); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.book-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.book-form input, .book-form select { height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.guests { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .92rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.total strong { font-family: var(--display); font-size: 1.6rem; }
.confirm { min-height: 1.4em; font-weight: 500; color: var(--brand-deep); }
.footer { background: var(--ink); color: #BFD3D8; padding: 26px 0 90px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .logo { color: #fff; font-size: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .trip-grid { grid-template-columns: 1fr; }
  .safety-grid, .book-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
/* Narrow screens crop the scene to its middle, so pull each sun inwards
   to keep it in view (the reflection follows --sx automatically). */
@media (max-width: 760px) {
  .hero[data-time="sunrise"] { --sx: 610px; --sy: 250px; }
  .hero[data-time="morning"] { --sx: 700px; --sy: 130px; }
  .hero[data-time="sunset"]  { --sx: 830px; --sy: 240px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .times { display: flex; }
  .times button { flex: 1; padding: 9px 8px; font-size: .9rem; }
  .times button span { display: block; margin: 0; }
  .points { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: 96px repeat(12, 34px); }
  .trips, .season, .safety, .book { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dolphin { opacity: 1; transform: translate(58px, -16px); }
  .boat { transform: translate(620px, 612px); }
  .birds { transform: translateX(520px); }
  html { scroll-behavior: auto; }
}
