@import url("fonts.css");

/* Captain's Cafe, Palampur */

:root {
  --yellow: #f4b81c;
  --yellow-soft: #fbd96a;
  --paper: #fff8e6;
  --pine: #e2b47c;
  --pine-dark: #a8733f;
  --chalk: #1f1f1d;
  --brick: #a4442e;
  --crimson: #b3152f;
  --ink: #1f1b16;
  --ink-soft: #5e5548;

  --slab: "Zilla Slab", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.05; margin: 0 0 0.45em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.chalk-note { font-family: var(--hand); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--brick); margin-bottom: 0.3em; transform: rotate(-1.5deg); transform-origin: left; display: inline-block; }
.chalk-note.light { color: var(--yellow-soft); }

.btn { display: inline-block; padding: 13px 26px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border-radius: 6px; transition: transform 0.15s, background 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--chalk); color: var(--yellow); }
.btn-line { border: 2px solid var(--chalk); color: var(--chalk); }
.btn-line:hover { background: var(--chalk); color: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 3px solid var(--yellow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--chalk); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-disc { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--chalk); display: grid; place-items: center; flex: none; }
.logo-disc svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word { font-family: var(--slab); font-weight: 700; font-style: italic; font-size: 1.35rem; color: var(--yellow); }
.logo-sub { font-size: 0.68rem; letter-spacing: 0.04em; color: #c9c2b5; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--yellow); }
.nav-cta { background: var(--yellow); color: var(--chalk) !important; padding: 8px 20px; border-radius: 6px; font-weight: 600; }
.nav-toggle { display: none; }

/* Hero */
.hero { background: var(--yellow); padding: 70px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.amp { font-style: italic; font-weight: 600; color: var(--paper); -webkit-text-stroke: 2px var(--chalk); }
.lede { font-size: 1.12rem; max-width: 31em; }
.hero-photos { position: relative; height: 520px; }
.hero-photos img { position: absolute; object-fit: cover; border: 8px solid var(--paper); box-shadow: 0 18px 36px rgba(60, 40, 0, 0.3); }
.hp1 { width: 82%; height: 340px; top: 0; right: 0; transform: rotate(2deg); }
.hp2 { width: 46%; height: 300px; bottom: 0; left: 0; transform: rotate(-4deg); }

/* Facts (chalk strip) */
.facts { background: var(--chalk); color: #f2ede3; padding: 34px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts strong { display: block; font-family: var(--hand); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--yellow); }
.facts span { font-size: 0.88rem; color: #bdb6a8; }

/* View */
.view { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.view-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(10,12,20,0.55) 55%, rgba(10,12,20,0.85) 100%); }
.view-inner { position: relative; width: 100%; padding-bottom: 56px; }
.view-inner h2 { max-width: 15em; }
.view-inner p:last-child { max-width: 32em; opacity: 0.92; }

/* Story */
.story { padding: 110px 0; background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.story-grid img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; box-shadow: 14px 14px 0 var(--yellow); }
.story-grid p { color: var(--ink-soft); max-width: 34em; }

/* Menu (yellow card, like the printed one) */
.menu { padding: 100px 0; background: repeating-linear-gradient(90deg, var(--pine) 0 22px, #d9a96f 22px 24px); }
.menu-head { background: var(--paper); display: inline-block; padding: 20px 28px 8px; border-radius: 4px; margin-bottom: 26px; box-shadow: 0 8px 20px rgba(80, 50, 10, 0.18); }
.menu-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.menu-grid > * { min-width: 0; }
.menu-grid { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 30px; align-items: start; }
.menu-card { background: var(--yellow); border-radius: 6px; padding: 34px 36px 26px; box-shadow: 0 16px 34px rgba(80, 50, 10, 0.25); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 8px 15px; border-radius: 6px; border: 2px solid var(--chalk); background: transparent; color: var(--chalk); cursor: pointer; }
.tab.is-active { background: var(--chalk); color: var(--yellow); }
.panel { display: none; }
.panel.is-active { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.groups { columns: 2; column-gap: 44px; }
.group { break-inside: avoid; margin-bottom: 26px; }
.group h3 { border-bottom: 2px solid var(--chalk); padding-bottom: 4px; margin-bottom: 8px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.group .dots { flex: 1; border-bottom: 2px dotted rgba(31,27,22,0.4); transform: translateY(-4px); }
.group b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-foot { font-size: 0.86rem; margin: 6px 0 0; border-top: 2px solid rgba(31,27,22,0.2); padding-top: 14px; }
.planks { margin: 0; background: var(--paper); padding: 10px 10px 14px; transform: rotate(2deg); box-shadow: 0 14px 30px rgba(80, 50, 10, 0.25); }
.planks img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.planks figcaption { font-family: var(--hand); font-weight: 600; font-size: 1.25rem; text-align: center; margin-top: 8px; color: var(--ink-soft); }

/* Cozy */
.cozy { background: var(--brick); color: #fff3e6; padding: 100px 0; }
.cozy-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.cozy-grid p { color: #f6dccb; max-width: 33em; }
.cozy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cozy-list li { background: rgba(0,0,0,0.18); border-left: 5px solid var(--yellow); padding: 16px 20px; border-radius: 4px; display: flex; flex-direction: column; }
.cozy-list b { font-family: var(--slab); font-size: 1.25rem; }
.cozy-list span { font-size: 0.9rem; color: #f0cdb8; }

/* Reviews */
.reviews { padding: 110px 0; }
.reviews-head { margin-bottom: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags span { font-size: 0.84rem; padding: 6px 13px; border-radius: 40px; background: #fff; border: 2px solid var(--chalk); }
.tags b { color: var(--brick); margin-left: 3px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.review { margin: 0; padding: 26px; background: #fff; border: 2px solid var(--chalk); border-radius: 6px; box-shadow: 6px 6px 0 var(--chalk); display: flex; flex-direction: column; justify-content: space-between; }
.review p { font-family: var(--slab); font-weight: 500; font-size: 1.2rem; line-height: 1.35; }
.review footer { font-size: 0.86rem; color: var(--ink-soft); }
.review.r1, .review.r5 { background: var(--yellow-soft); }
.review.r3 { background: var(--chalk); color: #f2ede3; box-shadow: 6px 6px 0 var(--yellow); }
.review.r3 footer { color: #bdb6a8; }

/* Visit */
.visit { padding: 100px 0; background: var(--yellow); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.visit dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin: 22px 0 10px; }
.visit dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brick); margin-bottom: 4px; }
.visit dd { margin: 0; line-height: 1.55; }
.visit dd a { text-decoration: none; font-weight: 600; }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 3px solid var(--chalk); border-radius: 6px; }

/* Footer */
.site-footer { background: var(--chalk); color: #bdb6a8; padding: 36px 0; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; text-decoration: none; }
.copy { color: #8a8378; }

.call-float { display: none; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .story-grid, .cozy-grid, .visit-grid, .menu-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photos { height: 460px; max-width: 560px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .story-grid img { max-width: 460px; }
  .planks { max-width: 380px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
}

/* Mobile */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .logo-sub { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform 0.25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 20px; background: var(--chalk); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 8px; padding: 10px 18px !important; }

  .hero { padding: 44px 0 60px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-photos { height: 380px; }
  .hp1 { height: 240px; width: 88%; }
  .hp2 { height: 210px; width: 52%; }
  .facts strong { font-size: 1.9rem; }
  .view { min-height: 460px; }
  .story, .menu, .cozy, .reviews, .visit { padding: 70px 0; }
  .menu-card { padding: 24px 18px 20px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 24px; padding: 0 18px 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .groups { columns: 1; }
  .review-grid { grid-template-columns: 1fr; }
  .visit dl { grid-template-columns: 1fr; }

  .call-float { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--chalk); color: var(--yellow); text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 40px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel.is-active { animation: none; }
}
