/* Carlo's Seafood home page. Prefix: csh- */

/* ---------- Loader: crab spins around a ring ---------- */
.cs-loader { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 40%, var(--cs-sky-light), var(--cs-sky) 70%); transition: opacity .55s ease, visibility .55s ease, transform .55s ease; animation: csLoaderFailsafe .5s ease 6s forwards; }
.cs-loader.is-done { opacity: 0; visibility: hidden; transform: scale(1.08); }
.cs-loader__stage { position: relative; width: 240px; height: 240px; }
.cs-loader__ring { position: absolute; inset: 22px; border-radius: 50%; border: 6px dashed rgba(255,255,255,.75); animation: csSpin 6s linear infinite reverse; }
.cs-loader__orbit { position: absolute; inset: 0; animation: csSpin 1.3s cubic-bezier(.6,.1,.4,.9) infinite; }
.cs-loader__crab { position: absolute; left: 50%; top: 50%; width: 120px; margin: -43px 0 0 -60px; animation: csSpin .65s linear infinite; filter: drop-shadow(0 6px 8px rgba(15,35,80,.25)); }
.cs-loader__bubble { position: absolute; bottom: 10px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); animation: csBubble 1.8s ease-in infinite; }
.cs-loader__bubble.b1 { left: 30%; }
.cs-loader__bubble.b2 { left: 55%; width: 10px; height: 10px; animation-delay: .5s; }
.cs-loader__bubble.b3 { left: 72%; animation-delay: 1s; }
.cs-loader__text { margin: 0; font-family: var(--cs-font-head); font-size: 1.5rem; color: var(--cs-white); text-shadow: 0 3px 0 var(--cs-navy); letter-spacing: .5px; }
@keyframes csLoaderFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes csBubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-200px) scale(1.2); opacity: 0; } }

/* Hero entrance waits for the loader */
body:not(.cs-ready) .csh-logo,
body:not(.cs-ready) .csh-title span,
body:not(.cs-ready) .csh-sub,
body:not(.cs-ready) .csh-ctas .cs-btn { opacity: 0; }

/* ---------- Shared bits ---------- */


/* ---------- Hero ---------- */
.csh-hero { position: relative; overflow: hidden; min-height: min(calc(100vh - var(--cs-header-h)), 920px); min-height: min(calc(100svh - var(--cs-header-h)), 920px); display: flex; align-items: center; padding: 60px 0 170px; background: linear-gradient(180deg, #3fb2ea 0%, #7fd3f4 45%, #c9eefc 75%, var(--cs-sand) 75.1%, var(--cs-sand) 100%); }
.csh-sky { position: absolute; inset: 0; pointer-events: none; }
.csh-sun { position: absolute; top: 8%; right: 12%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #fff6b0 0%, var(--cs-sun) 55%, rgba(255,210,63,0) 72%); animation: csPulse 4s ease-in-out infinite; }
.csh-cloud { position: absolute; height: 46px; border-radius: 46px; background: #fff; opacity: .92; animation: csDrift linear infinite; }
.csh-cloud::before, .csh-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.csh-cloud::before { width: 60%; height: 150%; left: 12%; top: -60%; }
.csh-cloud::after { width: 40%; height: 120%; right: 12%; top: -40%; }
.csh-cloud.c1 { width: 170px; top: 12%; animation-duration: 55s; animation-delay: -10s; }
.csh-cloud.c2 { width: 120px; top: 26%; animation-duration: 70s; animation-delay: -40s; opacity: .8; }
.csh-cloud.c3 { width: 210px; top: 6%; animation-duration: 90s; animation-delay: -65s; opacity: .7; }
@keyframes csDrift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 260px)); } }
@keyframes csPulse { 50% { transform: scale(1.08); } }
.csh-gull { position: absolute; width: 38px; fill: none; stroke: var(--cs-navy-deep); stroke-width: 2.5; stroke-linecap: round; animation: csGull 24s linear infinite, csFlap .6s ease-in-out infinite alternate; }
.csh-gull.g1 { top: 18%; }
.csh-gull.g2 { top: 24%; width: 28px; animation-delay: -9s, -.3s; }
@keyframes csGull { from { left: -60px; } to { left: calc(100% + 60px); } }
@keyframes csFlap { to { transform: scaleY(.55) translateY(4px); } }

.csh-deco { position: absolute; z-index: 1; pointer-events: none; transition: transform .25s ease-out; }
.csh-surf { width: 150px; left: 3%; bottom: 70px; animation: csSway 5s ease-in-out infinite; transform-origin: bottom center; }
.csh-umbrella { width: 300px; right: 2%; bottom: 150px; animation: csSway 7s ease-in-out infinite; transform-origin: 60% 100%; }
.csh-chair { width: 230px; right: 9%; bottom: 60px; }
.csh-star { width: 70px; left: 20%; bottom: 60px; animation: csTwirl 9s ease-in-out infinite; }
@keyframes csSway { 0%,100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes csTwirl { 0%,100% { rotate: -12deg; } 50% { rotate: 18deg; scale: 1.1; } }

.csh-hero__inner { position: relative; z-index: 2; text-align: center; }
.csh-logo { width: min(440px, 78vw, 46vh); margin: 0 auto 10px; filter: drop-shadow(0 18px 22px rgba(15,35,80,.28)); }
body.cs-ready .csh-logo { animation: csPopIn .9s cubic-bezier(.2,1.4,.4,1) both, csBob 4.5s ease-in-out .9s infinite; }
@keyframes csPopIn { 0% { opacity: 0; transform: scale(.3) rotate(-14deg); } 100% { opacity: 1; transform: none; } }
@keyframes csBob { 50% { transform: translateY(-12px) rotate(1deg); } }

.csh-title { margin: 0 0 12px; color: var(--cs-white); font-size: clamp(2.3rem, 7vw, 4.6rem); text-shadow: 0 4px 0 var(--cs-navy), 0 10px 22px rgba(15,35,80,.35); }
.csh-title span { display: inline-block; }
body.cs-ready .csh-title span { animation: csDrop .7s cubic-bezier(.2,1.5,.4,1) both; }
body.cs-ready .csh-title span:nth-child(1) { animation-delay: .35s; }
body.cs-ready .csh-title span:nth-child(2) { animation-delay: .5s; color: var(--cs-sun); }
body.cs-ready .csh-title span:nth-child(3) { animation-delay: .65s; }
.csh-title span:nth-child(2) { color: var(--cs-sun); }
@keyframes csDrop { 0% { opacity: 0; transform: translateY(-60px) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
.csh-sub { max-width: 640px; margin: 0 auto 28px; font-size: 1.2rem; font-weight: 700; color: var(--cs-navy-deep); background: rgba(255,255,255,.72); border-radius: 14px; padding: 10px 18px; }
body.cs-ready .csh-sub { animation: csFadeUp .6s ease .8s both; }
body.cs-ready .csh-ctas .cs-btn { animation: csFadeUp .6s ease both; }
body.cs-ready .csh-hero .csh-ctas .cs-btn:nth-child(1) { animation-delay: .95s, 2.8s; animation-name: csFadeUp, csWiggle; animation-duration: .6s, 4s; animation-iteration-count: 1, infinite; }
body.cs-ready .csh-ctas .cs-btn:nth-child(2) { animation-delay: 1.05s; }
body.cs-ready .csh-ctas .cs-btn:nth-child(3) { animation-delay: 1.15s; }


/* ---------- Ticker ---------- */
.csh-ticker { background: var(--cs-red); border-top: 4px solid var(--cs-white); border-bottom: 4px solid var(--cs-navy); overflow: hidden; position: relative; z-index: 3; }
.csh-ticker__track { display: flex; width: max-content; animation: csTicker 28s linear infinite; }
.csh-ticker:hover .csh-ticker__track { animation-play-state: paused; }
.csh-ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; font-family: var(--cs-font-head); font-size: 1.35rem; color: var(--cs-white); letter-spacing: 1px; white-space: nowrap; text-transform: uppercase; }
.csh-ticker span::before { content: ""; width: 30px; height: 30px; background: url("img/carlos-seafood-starfish-bullet.webp") center / contain no-repeat; animation: csSpin 6s linear infinite; }
@keyframes csTicker { to { transform: translateX(-50%); } }

/* ---------- Why cards ---------- */
.csh-why { background: var(--cs-cream); overflow: hidden; }
.csh-why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 20%, rgba(87,194,239,.18), transparent 40%), radial-gradient(circle at 90% 80%, rgba(245,154,47,.16), transparent 40%); pointer-events: none; }
.csh-why__grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); position: relative; }
.csh-card { position: relative; background: var(--cs-white); border-radius: 24px; padding: 30px 24px 26px; text-align: center; border: 3px solid var(--cs-navy); box-shadow: 8px 8px 0 var(--cs-navy); transition: transform .3s cubic-bezier(.2,1.4,.4,1), box-shadow .3s ease; }
.csh-card:nth-child(2) { box-shadow: 8px 8px 0 var(--cs-red); border-color: var(--cs-red); }
.csh-card:nth-child(3) { box-shadow: 8px 8px 0 var(--cs-palm); border-color: var(--cs-palm); }
.csh-card:nth-child(4) { box-shadow: 8px 8px 0 var(--cs-orange); border-color: var(--cs-orange); }
.csh-card:hover { transform: translate(-4px, -6px) rotate(-1.5deg); box-shadow: 14px 14px 0 currentColor; }
.csh-card:nth-child(1):hover { color: var(--cs-navy); }
.csh-card:nth-child(2):hover { color: var(--cs-red); }
.csh-card:nth-child(3):hover { color: var(--cs-palm); }
.csh-card:nth-child(4):hover { color: var(--cs-orange); }
.csh-card h3, .csh-card p { color: var(--cs-ink); }
.csh-card h3 { color: var(--cs-navy); }
.csh-card__icon { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.csh-card__icon img { max-height: 96px; width: auto; transition: transform .5s cubic-bezier(.2,1.6,.4,1); }
.csh-card:hover .csh-card__icon img { transform: scale(1.18) rotate(10deg); }
.csh-card.is-in .csh-card__icon img { animation: csFloat 3.5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -.8s); }

/* ---------- Menu board ---------- */
.csh-menu { background: linear-gradient(180deg, var(--cs-sky-light) 0%, var(--cs-sand) 38%, var(--cs-sand-deep) 100%); overflow: hidden; }
.csh-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.csh-tabs button { font-family: var(--cs-font-head); font-size: 1.1rem; letter-spacing: .5px; padding: 10px 20px; border-radius: 999px; border: 3px solid var(--cs-navy); background: var(--cs-white); color: var(--cs-navy); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.csh-tabs button:hover { transform: translateY(-3px); }
.csh-tabs button[aria-selected="true"] { background: var(--cs-red); border-color: var(--cs-red); color: var(--cs-white); box-shadow: 0 4px 0 var(--cs-red-dark); }
.csh-board { position: relative; max-width: 820px; margin: 0 auto; padding: 38px clamp(20px, 5vw, 56px) 44px; border-radius: 26px; background: repeating-linear-gradient(180deg, #d58e46 0 46px, #c47b37 46px 50px), var(--cs-wood); border: 6px solid #8a4f1c; box-shadow: inset 0 0 0 4px rgba(255,255,255,.18), 0 22px 40px rgba(15,35,80,.25); }
.csh-board::before, .csh-board::after { content: ""; position: absolute; top: -26px; width: 16px; height: 34px; border-radius: 8px; background: repeating-linear-gradient(45deg, #e9c983 0 5px, #b98a3e 5px 10px); }
.csh-board::before { left: 18%; }
.csh-board::after { right: 18%; }
.csh-panel { background: var(--cs-cream); border-radius: 16px; padding: 26px clamp(18px, 4vw, 34px); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.csh-panel.is-active { animation: csFlipIn .5s cubic-bezier(.2,1.2,.4,1); }
@keyframes csFlipIn { from { opacity: 0; transform: perspective(800px) rotateX(-18deg) translateY(14px); } to { opacity: 1; transform: none; } }
.csh-panel h3 { color: var(--cs-red); font-size: 2rem; margin-bottom: 18px; }
.csh-panel h3 small { font-family: var(--cs-font-body); font-weight: 700; font-size: .95rem; color: var(--cs-muted); margin-left: 8px; letter-spacing: 0; }
.csh-panel.is-active .csh-items li { animation: csSlideIn .45s ease both; }
.csh-panel.is-active .csh-items li:nth-child(2) { animation-delay: .04s; }
.csh-panel.is-active .csh-items li:nth-child(3) { animation-delay: .08s; }
.csh-panel.is-active .csh-items li:nth-child(4) { animation-delay: .12s; }
.csh-panel.is-active .csh-items li:nth-child(5) { animation-delay: .16s; }
.csh-panel.is-active .csh-items li:nth-child(6) { animation-delay: .2s; }
.csh-panel.is-active .csh-items li:nth-child(7) { animation-delay: .24s; }
.csh-panel.is-active .csh-items li:nth-child(8) { animation-delay: .28s; }
.csh-panel.is-active .csh-items li:nth-child(n+9) { animation-delay: .32s; }
.csh-board__crab { position: absolute; width: 130px; right: -40px; bottom: -36px; animation: csPeek 5s ease-in-out infinite; transform-origin: bottom center; }
.csh-menu__cta { text-align: center; margin-top: 44px; }

/* ---------- Promise ---------- */
.csh-promise { background: var(--cs-cream); overflow: hidden; }
.csh-promise__grid { display: grid; gap: 50px; grid-template-columns: 1fr 1fr; align-items: center; }
.csh-promise__art { position: relative; }
.csh-sign { width: 100%; max-width: 520px; margin: 0 auto; transform-origin: 50% 0; }
.csh-promise__art.is-in .csh-sign { animation: csHang 4s ease-in-out infinite; }
@keyframes csHang { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.csh-coconut { position: absolute; width: 150px; right: 0; bottom: -30px; animation: csFloat 3s ease-in-out infinite; }
.csh-promise h2 { color: var(--cs-navy); }
.csh-promise__list li { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 860px) { .csh-promise__grid { grid-template-columns: 1fr; } .csh-coconut { width: 110px; } }

/* ---------- Food truck ---------- */
.csh-truck { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 100px) 0 0; background: linear-gradient(180deg, var(--cs-navy) 0%, #2a5aa6 100%); color: var(--cs-white); text-align: center; }
.csh-truck h2 { color: var(--cs-white); text-shadow: 0 4px 0 var(--cs-red); }
.csh-truck .csh-kicker { color: var(--cs-sun); }
.csh-truck__copy p { max-width: 560px; margin: 0 auto 26px; font-size: 1.15rem; }
.csh-road { position: relative; height: 330px; margin-top: 30px; }
.csh-road::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: #3b3f47; border-top: 6px solid #c7c9cc; }
.csh-road__lane { position: absolute; left: 0; bottom: 40px; width: 200%; height: 8px; background: repeating-linear-gradient(90deg, var(--cs-sun) 0 60px, transparent 60px 120px); animation: csLane 1.2s linear infinite paused; }
.csh-truck.is-driving .csh-road__lane { animation-play-state: running; }
@keyframes csLane { to { transform: translateX(-120px); } }
.csh-truck__vehicle { position: absolute; bottom: 52px; left: 50%; width: min(520px, 86vw); transform: translateX(-160vw); transition: transform 2.4s cubic-bezier(.2,.75,.25,1); }
.csh-truck.is-driving .csh-truck__vehicle { transform: translateX(-50%); }
.csh-truck__vehicle img { width: 100%; animation: csIdle .35s ease-in-out infinite alternate; }
@keyframes csIdle { to { transform: translateY(-3px); } }
.csh-puff { position: absolute; left: -10px; bottom: 30px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.7); opacity: 0; }
.csh-truck.is-driving .csh-puff { animation: csPuff 1.6s ease-out infinite; }
.csh-puff.p2 { animation-delay: .5s !important; }
.csh-puff.p3 { animation-delay: 1s !important; }
@keyframes csPuff { 0% { opacity: .8; transform: translate(0,0) scale(.4); } 100% { opacity: 0; transform: translate(-90px,-40px) scale(2.2); } }

/* ---------- Locations ---------- */
.csh-locs { background: linear-gradient(180deg, var(--cs-sand) 0%, var(--cs-cream) 100%); }
.csh-locs__grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.csh-loc { position: relative; background: var(--cs-white); border-radius: 24px; padding: 54px 26px 26px; text-align: center; border-top: 8px solid var(--cs-red); box-shadow: 0 14px 30px rgba(15,35,80,.12); transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.csh-loc:hover { transform: translateY(-8px); }
.csh-loc--truck { border-top-color: var(--cs-navy); }
.csh-loc__pin { position: absolute; top: -34px; left: 50%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: var(--cs-white) url("img/carlos-seafood-anchor-bullet.webp") center / 38px no-repeat; box-shadow: 0 6px 16px rgba(15,35,80,.2); }
.csh-loc.is-in .csh-loc__pin { animation: csPinDrop .8s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--d, 0) * 150ms + .2s); }
@keyframes csPinDrop { from { transform: translateY(-50px); opacity: 0; } to { transform: none; opacity: 1; } }
.csh-loc h3 { color: var(--cs-red); }
.csh-loc p { font-weight: 600; }
.csh-loc__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.csh-loc__links a { padding: 8px 16px; border-radius: 999px; background: var(--cs-sky-light); color: var(--cs-navy); font-weight: 800; text-decoration: none; transition: background .2s ease, color .2s ease; }
.csh-loc__links a:hover { background: var(--cs-navy); color: var(--cs-white); }

/* ---------- Final CTA with walking crab ---------- */

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .csh-hero { padding-bottom: 150px; }
  .csh-umbrella { width: 170px; right: -20px; bottom: 120px; }
  .csh-chair { width: 120px; right: 4%; bottom: 46px; }
  .csh-surf { width: 80px; left: -6px; bottom: 50px; }
  .csh-star { width: 46px; left: 26%; bottom: 40px; }
  .csh-sun { width: 100px; height: 100px; right: 6%; }
  .csh-board__crab { width: 90px; right: -14px; bottom: -28px; }
  .csh-road { height: 260px; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cs-loader { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  body:not(.cs-ready) .csh-logo, body:not(.cs-ready) .csh-title span, body:not(.cs-ready) .csh-sub, body:not(.cs-ready) .csh-ctas .cs-btn { opacity: 1; }
  .csh-truck__vehicle { transform: translateX(-50%); }
}
.csh-locs__more { margin-top: 40px; }
