/* Benny's — brunch restaurant, Tangier */
:root {
  --color-bg: #eef1ea;
  --color-bg-deep: #1c241e;
  --color-surface: #f8f6f0;
  --color-surface-2: #fffdf8;
  --color-text: #1a1f1b;
  --color-text-muted: #5a615b;
  --color-text-on-dark: #f3efe6;
  --color-text-on-dark-muted: #c5cbbf;
  --color-accent: #2f4a38;
  --color-accent-hover: #24382b;
  --color-accent-soft: #dce6dc;
  --color-gold: #b8943a;
  --color-border: rgba(26, 31, 27, 0.1);
  --color-border-strong: rgba(26, 31, 27, 0.18);
  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --space-2xl: 7rem;
  --radius: 2px;
  --shadow-soft: 0 18px 50px rgba(28, 36, 30, 0.12);
  --header-h: 4.25rem;
  --content: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(47, 74, 56, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(184, 148, 58, 0.08), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-text-on-dark);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(28, 36, 30, 0.55);
  backdrop-filter: blur(10px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(28, 36, 30, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.header-inner {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-text-on-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(243, 239, 230, 0.25);
  background: transparent;
  color: var(--color-text-on-dark);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text-on-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  background: var(--color-gold);
  color: var(--color-bg-deep) !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-cta:hover {
  filter: brightness(1.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c9a64a;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(243, 239, 230, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-text-on-dark);
  background: rgba(243, 239, 230, 0.08);
}

.btn-solid {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-accent);
  color: var(--color-text-on-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--color-text-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 36, 30, 0.45) 0%, rgba(28, 36, 30, 0.2) 32%, rgba(28, 36, 30, 0.78) 100%),
    linear-gradient(90deg, rgba(28, 36, 30, 0.55) 0%, rgba(28, 36, 30, 0.12) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--content)) / 2));
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin-bottom: 1.15rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--color-text-on-dark);
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--color-text-on-dark-muted);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-content > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-content .eyebrow {
  animation-delay: 0.05s;
}

.hero h1 {
  animation-delay: 0.15s;
}

.hero-headline {
  animation-delay: 0.28s;
}

.hero-lede {
  animation-delay: 0.4s;
}

.hero-actions {
  animation-delay: 0.52s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: var(--space-lg);
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.75rem;
}

.section-head p,
.lede {
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

.about {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(238, 241, 234, 0.4));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1.05rem;
  color: var(--color-text-muted);
}

.about-copy p:first-child {
  font-size: 1.2rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-style: italic;
  line-height: 1.45;
}

.about-aside {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
  padding: 2.25rem 2rem;
  position: relative;
}

.about-aside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--color-gold);
}

.about-aside dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 0.3rem;
}

.about-aside dd {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
}

.about-aside dd:last-child {
  margin-bottom: 0;
}

/* Offerings */
.offerings {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
}

.offerings .section-head p,
.offerings .section-kicker {
  color: var(--color-gold);
}

.offerings .section-head p {
  color: var(--color-text-on-dark-muted);
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
}

.offer {
  padding: 1.75rem 1.35rem 1.75rem 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
  padding-right: 1.5rem;
}

.offer:not(:last-child) {
  border-right: 1px solid rgba(243, 239, 230, 0.12);
  padding-right: 1.5rem;
  margin-right: 1.5rem;
}

.offer-index {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-gold);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.7rem;
}

.offer h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.offer p {
  color: var(--color-text-on-dark-muted);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 16rem 16rem;
  gap: 0.65rem;
}

.gallery-grid a:first-child {
  grid-row: 1 / span 2;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--color-accent-soft);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.04);
}

/* Reviews */
.reviews {
  background: var(--color-surface);
}

.rating-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.rating-score {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 10vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

.rating-meta {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.stars {
  color: var(--color-gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.88rem;
}

.tag b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

/* Features */
.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}

.feature-group {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-strong);
}

.feature-group h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.feature-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-group li::before {
  content: "· ";
  color: var(--color-gold);
}

/* Visit / hours / location */
.visit {
  background:
    linear-gradient(165deg, #dce4d8 0%, var(--color-bg) 42%, #f4efe4 100%);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.panel {
  background: var(--color-surface-2);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 400;
}

.hours-table th {
  font-weight: 500;
}

.hours-table td {
  text-align: right;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.hours-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.address-block {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.map-embed-note {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
  text-align: center;
}

.contact .section-head {
  margin-inline: auto;
}

.contact .section-head p {
  color: var(--color-text-on-dark-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact a.btn-ghost {
  color: var(--color-text-on-dark);
}

.phone-display {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.5rem 0 1.5rem;
}

.phone-display a {
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.phone-display a:hover {
  color: var(--color-gold);
}

/* Footer */
.site-footer {
  background: #121714;
  color: var(--color-text-on-dark-muted);
  padding: 2.25rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  color: var(--color-text-on-dark);
  font-size: 1.15rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-nav a {
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-text-on-dark);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

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

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .offer-list {
    grid-template-columns: 1fr 1fr;
  }

  .offer:nth-child(odd) {
    border-right: 1px solid rgba(243, 239, 230, 0.12);
  }

  .offer:nth-child(even) {
    border-right: none;
    margin-right: 0;
  }

  .offer:nth-child(5) {
    border-right: none;
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 14rem 12rem 12rem;
  }

  .gallery-grid a:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 16rem;
  }

  .feature-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(28, 36, 30, 0.98);
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(243, 239, 230, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(243, 239, 230, 0.08);
    min-height: 2.75rem;
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .about-grid,
  .visit-grid,
  .rating-panel {
    grid-template-columns: 1fr;
  }

  .offer-list {
    grid-template-columns: 1fr;
  }

  .offer,
  .offer:nth-child(odd) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .feature-groups {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
    margin-left: auto;
    padding-bottom: 3rem;
  }

  .section {
    padding: 4rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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