/* =========================================================
   Cornish Cafe — burgundy / white / gold
   ========================================================= */
:root {
  --burgundy: #7a1428;
  --burgundy-2: #9b2335;
  --burgundy-3: #4f0c18;
  --cream: #faf5f5;
  --cream-2: #ffffff;
  --gold: #c9a24b;
  --crimson: #9e1b32;
  --ink: #22201b;
  --muted: #6b6a61;
  --line: #eedfe2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 0 18px 40px rgba(34, 32, 27, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream-2); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1072px, 90%); margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--burgundy); }

.label { display: block; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
.label.gold { color: var(--gold); }
.section { padding: 100px 0; }
.section.alt { background: var(--cream); }
.center { text-align: center; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 3rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 34px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; border: 1px solid transparent; transition: .25s ease; cursor: pointer; }
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--burgundy); }
.btn-cream { background: var(--cream); color: var(--burgundy); }
.btn-cream:hover { background: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--burgundy); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.logo svg { width: 40px; height: 26px; }
.logo-text { font-family: var(--serif); line-height: .95; }
.logo-text b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
.logo-text small { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--cream); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--gold); border-color: var(--gold); }
.burger { display: none; background: none; border: 0; width: 30px; height: 20px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--cream); transition: .3s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 9px; } .burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---------- Photo spots (show a styled tile until the photo file exists) ---------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--burgundy-2), var(--burgundy)); }
.ph::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.ph-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s ease; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 560px; height: 72vh; display: grid; place-items: center; text-align: center; color: var(--cream);
  background-color: var(--burgundy);
  background-image: linear-gradient(rgba(45, 6, 14, .55), rgba(45, 6, 14, .62)), url("images/hero.jpg"), url("images/breakfast.jpg");
  background-size: cover; background-position: center; }
.hero-logo svg { width: 92px; height: 60px; margin: 0 auto 10px; color: var(--cream); }
.hero h1 { color: var(--cream); font-weight: 500; font-size: clamp(3rem, 7vw, 4.6rem); line-height: .95; letter-spacing: .02em; }
.hero h1 em { display: block; font-size: .26em; letter-spacing: .35em; text-transform: uppercase; font-style: normal; color: var(--gold); margin-top: 14px; font-family: var(--sans); font-weight: 600; }
.hero p { font-size: 1.2rem; margin: 22px 0 32px; color: rgba(255, 255, 255, .92); }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Split story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .ph { aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: var(--shadow); }
.icon-line { width: 42px; height: 42px; color: var(--gold); margin-bottom: 18px; display: block; }
.split h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 1.2rem; }
.split p { color: #4a4a42; margin-bottom: 1rem; }
.split .btn { margin-top: .8rem; }

/* ---------- Image cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.img-card { aspect-ratio: 1 / 1; border-radius: 4px; box-shadow: var(--shadow); display: block; }
.img-card:hover .ph-img { transform: scale(1.06); }
.img-card .cap { position: absolute; inset: auto 0 0; padding: 70px 24px 24px; background: linear-gradient(transparent, rgba(20, 20, 15, .78)); z-index: 2; text-align: left; }
.img-card .cap small { display: block; color: var(--gold); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 600; }
.img-card .cap span { font-family: var(--serif); color: #fff; font-size: 1.3rem; }

/* ---------- Feature cards ---------- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 40px 30px; text-align: center; transition: .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ring { width: 60px; height: 60px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; color: var(--burgundy); }
.feature .ring svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- Heritage ---------- */
.heritage { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.heritage-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.heritage-photos figure { background: #fff; padding: 10px 10px 0; box-shadow: var(--shadow); }
.heritage-photos figure:nth-child(1) { transform: rotate(-2deg); }
.heritage-photos figure:nth-child(2) { transform: rotate(2deg) translateY(30px); }
.heritage-photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: sepia(.25); }
.heritage-photos figcaption { font-family: var(--serif); font-style: italic; font-size: .9rem; text-align: center; padding: 8px 0 10px; color: var(--muted); }
.heritage h2 { font-size: clamp(2rem, 3.4vw, 2.4rem); margin-bottom: 1.4rem; }
.timeline { list-style: none; border-left: 1px solid var(--gold); padding-left: 26px; }
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline b { font-family: var(--serif); color: var(--crimson); font-size: 1.15rem; margin-right: 8px; }
.timeline span { color: #4a4a42; }

/* ---------- Hours band ---------- */
.band { position: relative; padding: 90px 0; text-align: center; color: var(--cream);
  background-color: var(--burgundy);
  background-image: linear-gradient(rgba(79, 12, 24, .9), rgba(122, 20, 40, .9)), url("images/croissant-coffee.jpg");
  background-size: cover; background-position: center; }
.band h2 { color: var(--cream); font-size: 2rem; margin-bottom: 2rem; }
.hours-row { display: flex; justify-content: center; gap: 50px; margin-bottom: 2.4rem; flex-wrap: wrap; }
.hours-row h4 { color: var(--gold); font-size: 1.15rem; }
.hours-row p { font-size: 1.05rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: radial-gradient(circle at 80% 30%, rgba(201, 162, 75, .08), transparent 40%), linear-gradient(135deg, var(--burgundy-3), var(--burgundy-2)); color: var(--cream); text-align: center; padding: 80px 0 70px; }
.page-head h1 { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page-head p { max-width: 560px; margin: 0 auto; color: rgba(255, 255, 255, .85); }
.page-head .icon-line { margin: 0 auto 14px; }
.legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-size: .82rem; color: rgba(255, 255, 255, .85); }
.legend .dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; font-size: .6rem; margin-right: 6px; }
.legend .gold { color: var(--gold); letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }

/* ---------- Menu page ---------- */
.cat-bar { position: sticky; top: 74px; z-index: 40; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.cat-bar .container { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cat-bar a { flex: none; padding: 6px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: .82rem; color: var(--ink); background: #fff; transition: .2s; }
.cat-bar a:hover, .cat-bar a.active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.menu-group-title { text-align: center; font-size: 2rem; margin: 10px 0 34px; }
.menu-cols { columns: 2; column-gap: 26px; }
.menu-card { break-inside: avoid; background: #fff; border-top: 3px solid var(--gold); border-radius: 4px; box-shadow: var(--shadow); padding: 32px 30px 20px; margin-bottom: 26px; }
.menu-card h3 { text-align: center; font-size: 1.4rem; }
.menu-card .note { text-align: center; font-style: italic; color: var(--muted); font-size: .85rem; margin: 2px 0 18px; }
.menu-card.dark { background: var(--burgundy); }
.menu-card.dark h3, .menu-card.dark .item h4 { color: var(--cream); }
.menu-card.dark .note, .menu-card.dark .item p { color: rgba(255, 255, 255, .75); }
.item { padding: 11px 0; }
.item-top { display: flex; align-items: baseline; gap: 10px; }
.item h4 { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; color: var(--ink); }
.item .dots { flex: 1; border-bottom: 1px dotted #dcc6ca; transform: translateY(-4px); min-width: 20px; }
.item .price { font-family: var(--serif); color: var(--gold); font-size: 1rem; white-space: nowrap; }
.item p { font-size: .86rem; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.item .badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid #cfb1b7; border-radius: 50%; font-size: .55rem; color: var(--burgundy-2); font-family: var(--sans); font-weight: 600; margin-left: 4px; vertical-align: 2px; }
.item.special h4 { color: var(--crimson); }
.item.special h4::after { content: "\2605"; color: var(--gold); margin-left: 6px; font-size: .8em; }
.price-grid { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-grid th { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 4px 0 10px; text-align: right; }
.price-grid th:first-child { text-align: left; }
.price-grid td { padding: 8px 0; border-bottom: 1px dotted #dcc6ca; text-align: right; font-family: var(--serif); color: var(--gold); }
.price-grid td:first-child { text-align: left; color: var(--ink); }
.menu-section { padding-top: 60px; }
.allergy { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 30px; padding: 18px; border: 1px dashed var(--gold); border-radius: 4px; }
.allergy b { color: var(--crimson); }

/* ---------- Gallery page ---------- */
.masonry { columns: 3; column-gap: 16px; }
.masonry .tile { break-inside: avoid; margin-bottom: 16px; border-radius: 4px; box-shadow: var(--shadow); cursor: zoom-in; display: block; }
.masonry .tile.t { aspect-ratio: 3 / 4; } .masonry .tile.s { aspect-ratio: 1 / 1; } .masonry .tile.w { aspect-ratio: 4 / 3; }
.masonry .tile:hover .ph-img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(45, 6, 14, .94); display: grid; place-items: center; z-index: 100; opacity: 0; pointer-events: none; transition: .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 86vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 18px; right: 28px; background: none; border: 0; color: var(--cream); font-size: 2.6rem; cursor: pointer; }

/* ---------- Contact page ---------- */
.contact-card { display: grid; grid-template-columns: 1fr 1.25fr; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; background: #fff; }
.contact-info { background: linear-gradient(160deg, var(--burgundy-3), var(--burgundy-2)); color: var(--cream); padding: 50px 42px; }
.contact-info h2 { color: var(--cream); font-size: 2rem; margin-bottom: 1.4rem; }
.contact-info h2::after { content: ""; display: block; width: 46px; height: 2px; background: var(--gold); margin-top: 18px; }
.ci-row { display: flex; gap: 16px; margin-bottom: 22px; }
.ci-row .ring { flex: none; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.ci-row .ring svg { width: 16px; height: 16px; }
.ci-row small { display: block; color: var(--gold); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.ci-row p, .ci-row a { font-family: var(--serif); font-size: 1.02rem; }
.ci-row a { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contact-right { padding: 50px 42px; }
.contact-right h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.contact-right > p { color: var(--muted); margin-bottom: 1.6rem; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--crimson); padding: 22px 24px; margin-bottom: 26px; background: var(--cream-2); }
.callout .big { font-family: var(--serif); font-size: 2rem; color: var(--burgundy); display: block; }
.map { border: 1px solid var(--line); height: 300px; background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--burgundy-3); color: rgba(255, 255, 255, .85); padding: 60px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer h5 { color: var(--gold); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer .logo { margin-bottom: 14px; }
.footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .heritage, .contact-card { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .menu-cols { columns: 1; }
  .heritage-photos { margin-bottom: 40px; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: var(--burgundy); flex-direction: column; gap: 0; padding: 10px 5%; transform: translateY(-120%); transition: .35s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .cards3, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .masonry { columns: 1; }
  .contact-info, .contact-right { padding: 36px 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- Extra image cards + menu photo strips ---------- */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.img-card.wide { aspect-ratio: 16 / 9; }
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin: -10px 0 34px; }
.photo-strip .ph { aspect-ratio: 4 / 3; border-radius: 4px; box-shadow: var(--shadow); }
.credits { max-width: 820px; }
.credits li { margin-bottom: 12px; color: #4a4a42; font-size: .95rem; }
.credits a { color: var(--burgundy-2); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .cards2 { grid-template-columns: 1fr; }
  .photo-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}

/* ---------- Split hero: pancakes | full English | croissant ---------- */
.hero { background-image: none; overflow: hidden; }
.hero-panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--burgundy); }
.hero-panels div { background-size: cover; background-position: center; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
.hero-panels div:nth-child(2) { background-position: center 55%; animation-delay: .15s; }
.hero-panels div:nth-child(3) { animation-delay: .3s; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(45, 6, 14, .72) 0%, rgba(45, 6, 14, .5) 55%, rgba(45, 6, 14, .38) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
@keyframes heroZoom { to { transform: scale(1); } }
@media (max-width: 720px) {
  .hero { height: auto; min-height: 640px; }
  .hero-panels { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .hero::after { background: rgba(45, 6, 14, .62); }
}
@media (prefers-reduced-motion: reduce) { .hero-panels div { animation: none; transform: none; } }
.cards3.row2 { margin-top: 26px; }
