/* ==========================================================================
   Piccolos Restaurant — Theme: Red / White / Black
   ========================================================================== */

:root {
  --red: #b2182b;
  --red-dark: #8e1322;
  --red-light: #d43a4d;
  --black: #121212;
  --charcoal: #1d1d1f;
  --white: #ffffff;
  --off-white: #faf7f5;
  --grey: #6b6b6b;
  --border: #ececec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
  --shadow-lg: 0 20px 50px rgba(18, 18, 18, 0.16);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--black);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.2em;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(178, 24, 43, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 12px 30px rgba(178, 24, 43, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
  background: #f8e4e7;
  color: var(--red-dark);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--charcoal);
}

.btn-lg {
  padding: 1rem 2.6rem;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(178, 24, 43, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 4px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-color: var(--white);
}

.site-nav .nav-cta {
  background: var(--white);
  color: var(--red);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border-bottom: 0;
  font-weight: 600;
  transition: background 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: #f8e4e7;
  color: var(--red-dark);
}

/* Book a Table: outlined variant so it reads differently to Order Online */
.site-nav #your-button-reservation {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.site-nav #your-button-reservation:hover {
  background: var(--white);
  color: var(--red);
  transform: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 4% 1.2rem;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav .nav-cta {
    margin-top: 0.8rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(rgba(178, 24, 43, 0.1), rgba(178, 24, 43, 0.1)),
    url("../assets/piccolo1.webp") center / cover no-repeat #8e1322;
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.hero-inner {
  max-width: 640px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-inner .btn {
  text-shadow: none;
}

.hero .btn-outline {
  border-color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.hero-media img {
  display: block;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    width: min(100%, 360px);
    margin-inline: 0;
  }
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: #ffd9de;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-meta a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.hero-meta a:hover {
  color: #ffd9de;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: #fdf4f4;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--grey);
}

/* Feature cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(178, 24, 43, 0.09);
  color: var(--red);
  margin-bottom: 1.2rem;
}

.card .icon svg {
  width: 28px;
  height: 28px;
}

.card p {
  color: var(--grey);
  margin-bottom: 0;
}

/* Menu highlights */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  position: relative;
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  background: linear-gradient(150deg, #c62233 0%, #8e1322 100%);
  color: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(10px);
}

.menu-item h3 {
  color: var(--white);
  position: relative;
}

.menu-item p {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.menu-item a {
  position: relative;
  color: #ffd9de;
  font-weight: 600;
  text-decoration: none;
}

.menu-item a:hover {
  text-decoration: underline;
}

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-inline: auto;
}

.cta-band .btn {
  margin-top: 1.4rem;
  background: var(--white);
  color: var(--red);
}

.cta-band .btn:hover {
  background: #f8e4e7;
  color: var(--red-dark);
}

/* Find us / contact info */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.info-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(178, 24, 43, 0.09);
  color: var(--red);
  margin-bottom: 1.1rem;
}

.info-card .icon svg {
  width: 26px;
  height: 26px;
}

.info-card p {
  color: var(--grey);
  margin-bottom: 0.4rem;
}

.info-card a {
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Contact page */

.page-hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(160deg, #c62233 0%, #8e1322 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 58ch;
  margin-inline: auto;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: linear-gradient(160deg, #a01526 0%, #8e1322 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffd9de;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

address {
  font-style: normal;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.88rem;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.powered-by a {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 10px;
}

.powered-by img {
  height: 26px;
  width: auto;
  vertical-align: middle;
}

/* About: text + photo */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-grid .section-head {
  text-align: left;
  margin: 0;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(142, 19, 34, 0.9));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Footer social links */

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-links svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/* Hidden state only applies when JS is running (html.js set inline in <head>),
   so content stays visible for crawlers and users without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .menu-item {
    transition: none;
  }
}
