/* ============================================================
   CASA NOVA — SHARED PAGE HERO / BANNER
   ------------------------------------------------------------
   Mirrors the reference banner used on:
   https://www.casanovaitalian.com.au/romantic-restaurant/

     · Full-bleed banner image, cover / centre
     · Flat BLACK overlay at 50% opacity (never a colour wash —
       the photograph has to stay readable)
     · Content column max-width 1024px, centred
     · Padding 200px top / 80px bottom (clears the transparent
       Kadence header), 150px top under 768px
     · Eyebrow  — Vintage Goods 28px, white, capitalised
     · Title    — Bebas Neue, 30px → 75px, white, uppercase, 1.3
     · Lede     — Montserrat 16px, white
     · Buttons  — terracotta #C74C05, 3px radius

   Used by: page-work-with-us.php, template-whats-on.php and all
   page-menu-*.php templates via template-parts/page-hero.php.
   ============================================================ */

@font-face {
  font-family: "Vintage Goods";
  src: url("../fonts/VintageGoods-Regular.woff2") format("woff2"),
       url("../fonts/VintageGoods-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.cnh-hero {
  --cnh-accent:      #C74C05;
  --cnh-accent-deep: #A63F04;
  --cnh-secondary:   #F9CEB3;
  --cnh-font-head:   "Bebas Neue", sans-serif;
  --cnh-font-body:   "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cnh-font-script: "Vintage Goods", "Brush Script MT", cursive;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 200px 24px 80px;
  overflow: hidden;
  text-align: center;
  background-color: var(--cnh-accent);
  color: #ffffff;
}

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

/* ---- Banner image + overlay ---- */
.cnh-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--cnh-accent);
}

.cnh-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  animation: cnh-kenburns 12s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.cnh-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Content ---- */
.cnh-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
  animation: cnh-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* NOTE ON SPECIFICITY
   The page stylesheets this banner sits inside set their own heading colours
   with selectors like `.menu-page-main h1` (0,1,1) and load AFTER this file.
   Every rule below is therefore scoped `.cnh-hero .cnh-hero__x` (0,2,0) so the
   banner keeps its own typography and stays white on any page. */

.cnh-hero .cnh-hero__eyebrow {
  margin: 0;
  font-family: var(--cnh-font-script);
  font-size: clamp(1.35rem, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: capitalize;
  color: #ffffff;
}

.cnh-hero .cnh-hero__title {
  margin: 0;
  font-family: var(--cnh-font-head);
  font-size: clamp(30px, 6vw, 75px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #ffffff;
}

/* All banner copy is white — including any em/mark accents inside the title. */
.cnh-hero .cnh-hero__title em,
.cnh-hero .cnh-hero__title mark,
.cnh-hero .cnh-hero__title strong,
.cnh-hero .cnh-hero__eyebrow em,
.cnh-hero .cnh-hero__eyebrow mark,
.cnh-hero .cnh-hero__lede em,
.cnh-hero .cnh-hero__lede mark,
.cnh-hero .cnh-hero__lede a {
  background: none;
  font-style: normal;
  color: #ffffff;
}

.cnh-hero .cnh-hero__lede {
  max-width: 62ch;
  margin: 0 auto;
  font-family: var(--cnh-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #ffffff;
}

.cnh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

/* ---- Hero buttons (3px radius) ---- */
.cnh-hero .cnh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 2px solid var(--cnh-accent);
  border-radius: 3px;
  background: var(--cnh-accent);
  color: #ffffff;
  font-family: var(--cnh-font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}

.cnh-hero .cnh-btn:hover,
.cnh-hero .cnh-btn:focus-visible {
  background: var(--cnh-accent-deep);
  border-color: var(--cnh-accent-deep);
  color: #ffffff;
  transform: translateY(-2px);
}

.cnh-hero .cnh-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.cnh-hero .cnh-btn--ghost:hover,
.cnh-hero .cnh-btn--ghost:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--cnh-accent);
}

/* ---- Vertical rhythm between hero blocks ---- */
.cnh-hero__inner > * + * {
  margin-top: 0;
}

.cnh-hero__inner > .cnh-hero__lede {
  margin-top: 14px;
}

/* ---- Motion ---- */
@keyframes cnh-kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes cnh-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cnh-hero__img,
  .cnh-hero__inner {
    animation: none;
  }
}

/* ---- Responsive (matches the reference breakpoint) ---- */
@media (max-width: 767px) {
  .cnh-hero {
    min-height: 100vh;
    padding: 150px 20px 70px;
  }
}
