/* =========================================================
   Ruspidge Fish & Chips — Stylesheet
   Theme: Red, Black, White
   ========================================================= */

:root {
  --red: #d32027;
  --red-dark: #a8161c;
  --black: #161616;
  --charcoal: #232323;
  --grey: #6b6b6b;
  --light: #f6f6f6;
  --white: #ffffff;
  --accent: #ffe21f; /* logo yellow, used sparingly */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --maxw: 1180px;
  --header-h: 76px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 76px 0; }
.section--alt { background: var(--light); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-head p { color: var(--grey); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--charcoal); color: var(--white); }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: 50px; border-radius: 8px; }
.brand .brand-name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
}
.brand .brand-name span { color: var(--red); display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--white);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.nav a.nav-cta {
  background: var(--red);
  color: var(--white);
}
.nav a.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block; height: 3px; width: 26px;
  background: var(--white); border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.72)),
              url("../assets/shopfront-web.jpg") center/cover no-repeat;
}
.hero .container {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-inner { max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 1.2rem; max-width: 560px; margin-bottom: 32px; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Feature strip ---------- */
.features { background: var(--red); color: var(--white); }
.features .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 20px;
}
.feature { display: flex; align-items: center; gap: 14px; }
.feature .ico { font-size: 1.8rem; line-height: 1; }
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: 0.86rem; color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Menu highlights ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.menu-card:hover { transform: translateY(-6px); }
.menu-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; }
.menu-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.menu-card:hover img { transform: scale(1.06); }
.menu-card .body { padding: 22px; }
.menu-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.menu-card p { color: var(--grey); font-size: 0.96rem; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.split p { color: var(--grey); margin-bottom: 16px; }
.tick-list { list-style: none; margin: 20px 0; }
.tick-list li { padding-left: 30px; position: relative; margin-bottom: 12px; font-weight: 600; }
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--white); background: var(--red);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.08); }

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(135deg, var(--black), var(--charcoal));
  color: var(--white);
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #ececec; }
.info-row:last-child { border-bottom: none; }
.info-row .ico {
  flex: 0 0 46px; height: 46px; width: 46px;
  background: var(--red); color: var(--white);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.info-row h3 { font-size: 1.05rem; margin-bottom: 2px; }
.info-row p, .info-row a { color: var(--grey); font-size: 0.98rem; }
.info-row a:hover { color: var(--red); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.page-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.78)),
              url("../assets/interior.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: rgba(255,255,255,0.9); margin-top: 10px; font-size: 1.1rem; }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 14px; }
.breadcrumb a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-brand img { height: 64px; width: 64px; border-radius: 10px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  height: 42px; width: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.socials a:hover { background: var(--red); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  background: var(--white);
  color: var(--black);
  padding: 18px 0;
  font-size: 0.88rem;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-bottom .powered { display: flex; align-items: center; gap: 8px; }
.footer-bottom .powered img { height: 26px; width: auto; display: inline-block; }
.footer-bottom a { color: var(--black); }

/* ---------- Floating order button (mobile) ---------- */
.float-order {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(211,32,39,0.5);
  display: none;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features .container { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 6px;
    border-bottom: 3px solid var(--red);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 16px; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .float-order { display: inline-flex; }
  .section { padding: 56px 0; }
}
