/* ============================================================
   King Street Fisheries — styles.css
   Brand: deep sea blue + chip-shop red, golden batter accent
   ============================================================ */

:root {
  --blue: #0b4f8a;
  --blue-dark: #083a66;
  --blue-light: #1576c7;
  --red: #e8322f;
  --red-dark: #c8211f;
  --gold: #ffc23c;
  --ink: #14202b;
  --muted: #5c6b78;
  --bg: #ffffff;
  --bg-alt: #f1f6fb;
  --line: #e2eaf1;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(8, 40, 70, 0.10);
  --shadow-lg: 0 20px 50px rgba(8, 40, 70, 0.18);
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--blue-dark); }
p { margin: 0 0 1rem; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 8px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem;
  padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(232, 50, 47, .35); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.08rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-dark); color: #dbe9f6; font-size: .9rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; justify-content: center; padding: .45rem 0; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; color: #dbe9f6; }
.topbar__item:hover { color: #fff; text-decoration: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand:hover { text-decoration: none; }
.brand__icon { border-radius: 10px; box-shadow: 0 4px 10px rgba(8,40,70,.18); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--blue-dark); font-size: 1.12rem; }
.brand__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; }
.nav__menu { list-style: none; display: flex; align-items: center; gap: 1.3rem; margin: 0; padding: 0; }
.nav__menu a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav__menu a:not(.btn):hover { color: var(--blue-light); text-decoration: none; }
.nav__cta { color: #fff !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--blue-dark); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, #0e5fa3 0%, #083a66 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: radial-gradient(120% 90px at 50% 0, transparent 70%, var(--bg) 71%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(255,194,60,.18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(21,118,199,.5), transparent 60%);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(56px, 9vw, 104px) 0 clamp(72px, 10vw, 128px);
}
.hero__content { text-align: left; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .82rem; color: var(--gold); margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.hero__subtitle { max-width: 56ch; margin: 0 0 2rem; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: #e7f1fb; }
.hero__actions { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; gap: 1.4rem; justify-content: flex-start; flex-wrap: wrap; margin: 2.2rem 0 0; padding: 0; font-weight: 600; color: #dcebf9; }

/* Hero image (right column) */
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, .9);
}

/* ---------- Features ---------- */
.features { margin-top: -40px; position: relative; z-index: 5; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow); text-align: center; }
.feature__icon { font-size: 2.4rem; margin-bottom: .6rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Section heads ---------- */
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .8rem; color: var(--red); margin-bottom: .6rem; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media-card {
  aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center;
  background: linear-gradient(135deg, #0e5fa3, #083a66); box-shadow: var(--shadow-lg); padding: 2rem;
}
.about__content .section__eyebrow { text-align: left; }

/* ---------- Menu ---------- */
.menu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.menu-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.menu-card__title { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px dashed var(--line); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; color: var(--ink); border-bottom: 1px solid #f0f4f8; }
.menu-list li:last-child { border-bottom: 0; }
.menu__cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Order / Collection & Delivery ---------- */
.order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.order__card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.order__icon { font-size: 2.4rem; margin-bottom: .5rem; }
.order__card h3 { margin-bottom: .4rem; }
.order__card p { color: var(--muted); margin: 0; }
.order__banner {
  grid-column: 1 / -1; text-align: center; color: #fff; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), #a81715); padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.order__banner h2 { color: #fff; }
.order__banner p { color: #ffe3e2; margin-bottom: 1.6rem; }
.order__banner .btn--primary { background: #fff; color: var(--red); box-shadow: none; }
.order__banner .btn--primary:hover { background: #fff7f7; color: var(--red-dark); }

/* ---------- Hours ---------- */
.hours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hours__content .section__eyebrow { text-align: left; }
.hours__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours__table th, .hours__table td { padding: .95rem 1.4rem; text-align: left; }
.hours__table th { font-family: "Poppins", sans-serif; color: var(--blue-dark); font-weight: 600; }
.hours__table td { text-align: right; color: var(--muted); font-weight: 600; }
.hours__table tr:nth-child(odd) { background: var(--bg-alt); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.contact__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__ic { font-size: 1.5rem; flex: 0 0 auto; }
.contact__list strong { font-family: "Poppins", sans-serif; color: var(--blue-dark); display: block; }
.contact__list p { margin: 0; color: var(--muted); }
.contact__map { min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: #c8dbed; padding-top: clamp(48px, 7vw, 72px); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: #c8dbed; }
.footer a:hover { color: #fff; }
.footer__brand .brand__name { color: #fff; font-size: 1.2rem; }
.footer__brand p { color: #9fbdd8; margin-top: .8rem; max-width: 30ch; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; font-size: .85rem; color: #9fbdd8; }
.footer__bar-inner p { margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 800;
  background: var(--red); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700;
  padding: .85rem 2.2rem; border-radius: 999px; box-shadow: var(--shadow-lg); display: none;
}
.sticky-cta:hover { color: #fff; text-decoration: none; background: var(--red-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__content { text-align: center; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__media { max-width: 560px; margin-inline: auto; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .features__grid { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .hours__grid, .contact__grid, .order__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .topbar__item--hide { display: none; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem 20px 1.6rem; gap: .3rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow:auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { width: 100%; }
  .nav__menu a:not(.btn) { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: .6rem; }
  .sticky-cta { display: inline-flex; }
}
@media (max-width: 520px) {
  .menu__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__badges { gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
