/* ==========================================================================
   The Partisan — Claisebrook Cove, East Perth
   Stylesheet
   --------------------------------------------------------------------------
   Contents
   01. Tokens
   02. Base & layout
   03. Navigation
   04. Hero
   05. Section furniture
   06. Menu filters
   07. Dish grid
   08. Allergy callout
   09. Booking
   10. Footer
   11. Responsive
   12. Accessibility
   ========================================================================== */


/* 01. Tokens ============================================================== */

:root {
  /* Colour — saffron is lifted from the venue's existing NowBookIt widget
     params (colors=hex,000000,ffde7a); cove is the Claisebrook water. */
  --ink:       #131311;
  --ink-soft:  #4A4A44;
  --shell:     #EDEEE8;
  --paper:     #F7F7F4;
  --saffron:   #FFDE7A;
  --cove:      #14413F;
  --alert:     #C7452F;
  --line:      rgba(19, 19, 17, .12);
  --open:      #2E9E5B;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Archivo", "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Space */
  --gutter:  32px;
  --section: 88px;
  --radius:  18px;
  --radius-lg: 26px;
}


/* 02. Base & layout ======================================================= */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }


/* 03. Navigation ========================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 244, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.03em;
}

.logo em { font-style: normal; color: var(--cove); }

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__links a {
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a.is-current { border-bottom-color: var(--saffron); }

.nav__tel {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.nav__tel:hover { background: var(--shell); }

.nav__book {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
}

.nav__book:hover { background: var(--cove); }


/* 04. Hero ================================================================ */

.hero { padding-block: 70px 40px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink);
}

.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: .98;
  letter-spacing: -.035em;
}

.hero__title b { font-weight: 900; font-style: italic; }

.hero__sub {
  max-width: 44ch;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.cta {
  padding: 15px 28px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.cta--solid { background: var(--saffron); border-color: var(--saffron); }
.cta--solid:hover { background: var(--ink); color: var(--saffron); }

.cta--ghost { background: transparent; }
.cta--ghost:hover { background: var(--ink); color: var(--paper); }

.hero__hours {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.hero__hours b { color: var(--ink); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--open);
}

/* Hero visual */
.hero__visual { position: relative; }

.plate {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 30%, #1D5B57, var(--cove) 55%, #0D2B2A);
  box-shadow: 0 40px 80px -30px rgba(20, 65, 63, .55);
}

.plate__placeholder {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, .5);
}

.tag {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .3);
}

.tag__key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag__value {
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
}

.tag--market { top: 8%; left: -4%; }
.tag--filter { bottom: 11%; right: -5%; }
.tag--filter .tag__value { font-size: 15px; color: var(--cove); }


/* 05. Section furniture =================================================== */

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.section__title b { font-weight: 900; font-style: italic; }

.section__note {
  max-width: 38ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}


/* 06. Menu filters ======================================================== */

.filters {
  margin-block: 30px 8px;
  padding: 20px;
  background: var(--shell);
  border-radius: var(--radius);
}

.filters__label {
  margin-bottom: 13px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.filters__label + * + .filters__label { margin-top: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip--danger[aria-pressed="true"] {
  background: var(--alert);
  border-color: var(--alert);
  color: #fff;
}

.filters__count {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}


/* 07. Dish grid =========================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.dish {
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: .2s;
}

.dish:hover { border-color: var(--ink); transform: translateY(-3px); }

.dish.is-hidden { display: none; }

.dish__img {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #E2E4DC, #D3D6CA);
}

.dish__img span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(19, 19, 17, .35);
}

.dish__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.dish__desc {
  flex: 1;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }

.badge {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--shell);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--ink-soft);
}

.badge--warn { background: rgba(199, 69, 47, .12); color: var(--alert); }

.dish__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dish__price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}

.grid__empty {
  grid-column: 1 / -1;
  padding: 46px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.grid__empty b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.grid__empty span { font-size: 14px; color: var(--ink-soft); }


/* 08. Allergy callout ===================================================== */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--cove);
  color: var(--paper);
}

.callout__text { flex: 1; min-width: 240px; }

.callout__text b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
}

.callout__text p { font-size: 14px; line-height: 1.6; opacity: .85; }

.callout__link {
  padding: 13px 22px;
  border-radius: 100px;
  background: var(--saffron);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}


/* 09. Booking ============================================================= */

.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}

.booking .section__title { color: var(--paper); }

.booking__copy p {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(247, 247, 244, .7);
}

/* Placeholder standing in for the embedded NowBookIt iframe. */
.widget {
  padding: 30px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.widget__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.widget__brand {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.widget__sub { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

.widget__slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 20px;
}

.widget__slots i {
  padding-block: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
}

.widget__slots i.is-selected {
  background: var(--saffron);
  border-color: var(--saffron);
  font-weight: 700;
}


/* 10. Footer ============================================================== */

.footer {
  margin-top: 20px;
  padding-block: 52px 60px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer__grid h4 {
  margin-bottom: 15px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer__grid p,
.footer__grid a {
  display: block;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.footer__grid a:hover { color: var(--ink); }

.footer__logo { margin-bottom: 14px; }


/* 11. Responsive ========================================================== */

@media (max-width: 940px) {
  .hero__grid    { grid-template-columns: 1fr; gap: 44px; }
  .booking       { grid-template-columns: 1fr; padding: 38px 26px; }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
  .nav__links,
  .nav__tel      { display: none; }
}

@media (max-width: 560px) {
  :root         { --gutter: 20px; --section: 60px; }
  .footer__grid { grid-template-columns: 1fr; }
}


/* 12. Accessibility ======================================================= */

:focus-visible {
  outline: 2.5px solid var(--cove);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


/* Reviews ================================================================= */
 
.reviews {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: 30px;
}
 
/* --- score panel --- */
 
.reviews__score {
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--shell);
  text-align: center;
}
 
.reviews__number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -.04em;
}
 
.reviews__stars {
  margin-top: 12px;
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--saffron);
}
 
/* Partial fifth star for the 4.2 average. */
.reviews__stars .is-half {
  background: linear-gradient(90deg, var(--saffron) 20%, rgba(19, 19, 17, .18) 20%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
 
.reviews__count {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
 
.reviews__link {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 20px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
}
 
.reviews__link:hover { background: var(--cove); }
 
/* --- widget slot --- */
 
.reviews__placeholder {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 300px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}
 
.reviews__placeholder-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
 
.reviews__placeholder-note {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}
 
/* --- responsive --- */
 
@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; gap: 20px; }
  .reviews__placeholder { min-height: 240px; }
}