/* Chishuru — base styles
   Colours and type measurements read directly off the live Squarespace site
   via computed styles (background/text colours, font weights, letter
   spacing) so this reads as close to the original as possible.
   Font: the live site licenses Halyard Display (Process Type Foundry), which
   isn't freely available. Work Sans is the closest free substitute — a
   similar humanist sans with the same wide weight range (the site leans on
   an unusually light 100-weight for headings, which most free fonts don't
   offer). Swap the @import + font-family below if a Halyard Display licence
   is bought later; nothing else depends on the exact typeface. */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;300;400;500;600;700&display=swap');

:root {
  --chs-terracotta: #efa179;   /* page background on the live site */
  --chs-olive: #536148;        /* Reservations / Press section background */
  --chs-green: #1a3b2a;        /* modal text / dark green */
  --chs-green-bright: #2f6f55; /* button green / "here" link colour */
  --chs-cream: #f9f8f6;
  --chs-ink: #201a15;
  --chs-max-width: 1100px;
  --chs-font: 'Work Sans', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--chs-terracotta);
  color: var(--chs-ink);
  font-family: var(--chs-font);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

h1, h2, h3 {
  font-family: var(--chs-font);
  font-weight: 100;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--chs-ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 1.5em; font-weight: 200; }

a { color: inherit; }

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

.wrap {
  max-width: var(--chs-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--chs-max-width);
  margin: 0 auto;
  color: #fff;
}

.site-header .logo img { height: 48px; width: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.site-nav a { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--chs-ink);
    padding: 110px 32px 40px;
    z-index: 200;
    overflow-y: auto;
  }
  .site-header.nav-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 22px;
    font-size: 1.3rem;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero (Home page): full-bleed, edge-to-edge, no rounded corners, matching
   the live site — headline and Michelin badge both overlaid on the photo. */
.hero {
  position: relative;
  margin: 0;
  height: 70vh;
  min-height: 380px;
  max-height: 760px;
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .hero-text {
  position: absolute;
  left: 5%;
  bottom: 6%;
  color: #fff;
  max-width: 70%;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero .hero-text h1 { color: #fff; }

.hero-michelin-wrap { text-align: center; padding: 26px 24px 4px; }
.hero-michelin { max-width: 110px; margin: 0 auto; }

/* Reservations CTA above the hero — shown at every width, matching live */
.home-reserve-cta { text-align: center; padding: 4px 24px 22px; }

/* Home intro: centred text below the hero, matching the live site's larger,
   thin-weight intro copy (not regular 15px body text) */
.home-intro { text-align: center; }
.home-intro p {
  max-width: 700px;
  margin: 0 auto 1.1em;
  font-size: clamp(1.3rem, 0.9rem + 1.15vw, 2rem);
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.home-intro .cta-button-wrapper { margin: 40px 0 36px; }

/* Page content */
.page-header {
  padding: 40px 0 10px;
}

.content {
  padding: 20px 0 60px;
}

.content p { max-width: 700px; }

.content ul { max-width: 700px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

.button, .cta-button, .reservations-button {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  border: 2px solid var(--chs-green-bright);
  background: transparent;
  color: var(--chs-green-bright);
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.button:hover, .cta-button:hover, .reservations-button:hover {
  transform: translateY(-1px);
}

.cta-button {
  background: var(--chs-green-bright);
  color: #fff !important;
}
.cta-button:hover { background: transparent; color: var(--chs-green-bright) !important; }

.cta-button-wrapper { text-align: center; margin: 32px 0; }

/* Gallery grid (group bookings / press room etc) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Footer */
.site-footer {
  background: #fafafa;
  text-align: center;
  padding: 48px 24px 40px;
}
.site-footer .wrap {
  max-width: var(--chs-max-width);
  margin: 0 auto;
}
.site-footer p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.site-footer .footer-name {
  font-weight: 500;
}
.site-footer a { text-decoration: underline; color: inherit; }
.site-footer .footer-social {
  margin-top: 18px;
  margin-bottom: 0;
}
.site-footer .footer-social a {
  display: inline-flex;
  text-decoration: none;
  color: var(--chs-ink);
}

/* Contact trigger link */
.contact-trigger,
.contact-trigger:link,
.contact-trigger:visited {
  color: var(--chs-green-bright) !important;
  font-weight: 700;
  text-decoration: underline !important;
}

/* ---- Modal system (ported from Squarespace code injection) ---- */
.sqsp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
}
.sqsp-modal.is-open { display: flex; }

.sqsp-modal__dialog {
  background: var(--chs-cream) !important;
  width: min(92%, 620px);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: var(--chs-green) !important;
}

.sqsp-modal__dialog h3 {
  margin: 0 0 .75rem 0;
  font-weight: 700 !important;
  font-size: 1.05em !important;
  line-height: 1.25 !important;
  color: var(--chs-green) !important;
}

.sqsp-modal__dialog p {
  margin: .25rem 0 0;
  color: var(--chs-green) !important;
}

.sqsp-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--chs-green) !important;
}

.sqsp-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
  justify-items: center;
}
@media (min-width: 560px) {
  .sqsp-modal__grid { grid-template-columns: 1fr 1fr; }
}

.sqsp-modal__row {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.sqsp-modal__footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26,59,42,.25);
  display: flex;
  justify-content: center;
}

.sqsp-modal__btn,
.sqsp-modal__btn:link,
.sqsp-modal__btn:visited,
.sqsp-modal__btn:hover,
.sqsp-modal__btn:active {
  appearance: none !important;
  display: block;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--chs-green) !important;
  background: transparent !important;
  color: var(--chs-green) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.sqsp-modal__btn:hover {
  background: #eaf0ec !important;
  transform: translateY(-1px);
}
.sqsp-modal__row .sqsp-modal__btn {
  width: auto;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
}

.sqsp-modal .sqsp-modal__btn {
  opacity: 0;
  visibility: hidden;
}
.sqsp-modal.is-open .sqsp-modal__btn {
  animation: chsBtnIn .22s ease forwards;
  animation-delay: .30s;
}
@keyframes chsBtnIn {
  from { opacity: 0; transform: translateY(2px); visibility: visible; }
  to   { opacity: 1; transform: translateY(0); visibility: visible; }
}

html.sqsp-modal-lock { overflow: hidden; }

/* Delayed-appearance CTA (Group Bookings): content itself is always in the
   HTML/DOM for crawlers; only the cosmetic fade is deferred by JS. */
.js-fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/* If JS is disabled, never hide real content from users/crawlers */
.no-js .js-fade-in { opacity: 1; transform: none; }

/* Press room */
#press-gate { max-width: 480px; }
#press-gate-form { display: flex; gap: 10px; margin-top: 14px; }
#press-gate-input { flex: 1; padding: 10px 12px; border: 1px solid #ccc; font-size: 1rem; }
.press-gate-error { color: #a02020; margin-top: 10px; }
.press-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.press-item { display: block; position: relative; overflow: hidden; border: 1px solid #e5e0d8; }
.press-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.press-credit { display: block; padding: 6px 8px; font-size: 0.8rem; color: #6b6258; background: var(--chs-cream); }

/* Two-column layout: cap the photo so a tall portrait image (many of ours
   are 2500x3750) never dwarfs the text column and leaves a huge unbalanced
   gap before the footer. */
.two-col img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 820px) {
  .two-col img { height: 320px; }
}

/* Page hero banner: full-bleed photo with the page title overlaid at the
   bottom, matching the original site's per-page photography treatment. */
.page-hero-banner {
  position: relative;
  height: 56vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
}
.page-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero-banner h1 {
  position: absolute;
  left: 5%;
  bottom: 6%;
  margin: 0;
  color: #fff;
  font-weight: 100;
  font-size: clamp(2.6rem, 6vw, 4rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  max-width: 90%;
}

/* Olive-green content section variant (Reservations, Press on the live site) */
.section-olive {
  background: var(--chs-olive);
  color: var(--chs-cream);
  text-align: center;
}
.section-olive .content p,
.section-olive .content ul {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-olive .cta-button-wrapper { margin-top: 40px; }
.section-olive h2 { color: var(--chs-cream); }
.section-olive a { color: var(--chs-cream); text-decoration: underline; }
.section-olive .button,
.section-olive .reservations-button {
  border-color: var(--chs-cream);
  color: var(--chs-cream);
}
