/* St Davids Fish & Chips styles (Tailwind CDN handles utilities); layout mirrors Flava25 */
:root { --accent: #0b84c6; --amber: #ffc845; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif; background: #000; color: #fff; }
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }
::selection { background: var(--accent); color: #000; }

.js .reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.4,0,.2,1); }
.js .reveal.active { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

#nav { transition: all .5s; }
#nav.scrolled { background: rgba(10,10,10,.95); backdrop-filter: blur(12px); box-shadow: 0 20px 40px rgba(0,0,0,.5); padding-top: .5rem; padding-bottom: .5rem; }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -10px; height: 2px; width: 0; background: var(--accent); transition: width .3s; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }
#mobile-menu { transition: all .3s; }
#mobile-menu:not(.open) { opacity: 0; transform: translateY(-20px); pointer-events: none; max-height: 0; overflow: hidden; padding: 0 2rem; }

.tab-btn.active { background: var(--accent); color: #000; box-shadow: 0 10px 25px rgba(11,132,198,.25); }
.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeIn .4s ease-out; }

.glow { text-shadow: 0 0 40px rgba(11,132,198,.35); }

.call-btn { position: relative; overflow: hidden; isolation: isolate; animation: callPulse 2s ease-in-out infinite; }
.call-btn::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: callShine 2.8s ease-in-out infinite; }
.phone-ring { display: inline-flex; animation: callRing 1.6s ease-in-out infinite; }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,69,.7), 0 20px 60px rgba(255,200,69,.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 18px rgba(255,200,69,0), 0 20px 70px rgba(255,200,69,.55); transform: scale(1.03); }
}
@keyframes callShine { 0%, 40% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
@keyframes callRing { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25%, 35% { transform: rotate(-18deg); } 10%, 20%, 30%, 40% { transform: rotate(18deg); } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .call-btn, .call-btn::before, .phone-ring, .animate-bounce, .animate-ping { animation: none; }
}

/* Light theme: white background everywhere except the photo hero */
.light { background: #fff; color: #1c1917; }
.light :is(#home, #nav:not(.scrolled)) { color: #fff; }
.light :is(#about, #menu, #favourites, #find-us, #cta, #mobile-menu) { color: #1c1917; }
.light :is(#about, #menu, #favourites, #find-us, #cta, footer, #mobile-menu) { --ink: #1c1917; }
.light :is(#about, #menu, #favourites, #find-us, #cta, footer).bg-black,
.light :is(#about, #menu, #favourites, #find-us, footer) .bg-black { background: #fff; }
.light :is(#about, #favourites, footer, #mobile-menu).bg-neutral-950 { background: #f2f6f9; }
.light :is(#about, #menu, #favourites, #find-us, footer) .bg-neutral-900 { background: #fff; box-shadow: 0 10px 30px rgba(28,25,23,.06); }
.light #menu .bg-neutral-900\/60 { background: #eaf1f6; }
.light #menu .bg-neutral-800 { background: #eee; }
.light :is(#about, #menu, #favourites, #find-us, #cta, footer, #mobile-menu) :is(.text-white, h2, h3, address) { color: #1c1917; }
.light :is(#about, #menu, #favourites, #find-us, footer) .text-neutral-400,
.light footer.text-neutral-400 { color: #57534e; }
.light #cta .text-neutral-300 { color: #57534e; }
.light :is(#about, #menu, #favourites, #find-us, footer, #mobile-menu) :is(.border-neutral-800, .border-neutral-900),
.light footer.border-neutral-900, .light footer .border-neutral-900 { border-color: #dfe7ee; }
.light #menu .tab-btn:not(.active) { color: #57534e; }
.light #menu .tab-btn:not(.active):hover { color: #1c1917; }
.light #menu .group:hover .group-hover\:text-white { color: #1c1917; }
.light #favourites .bg-white { background: #1c1917; color: #fff; }
.light #favourites .group:hover .bg-white { background: var(--accent); color: #000; }
.light #favourites .bg-gradient-to-br h3 { color: #000; }
.light #cta { background: linear-gradient(135deg, #e6f3fb, #fff 60%); }
.light #cta .bg-white\/10 { background: #1c1917; color: #fff; }
.light #mobile-menu { background: #fff; border-color: #dfe7ee; }
.light #nav.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.08); color: #1c1917; }
.light ::-webkit-scrollbar-track { background: #eaf1f6; }

details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }
