/* Ca La Meli — section styles.
   Re-creates the six bands of the original site: hero, intro, menu card,
   image strip, dark contact and footer. Tokens are measured on the original. */

:root {
  --clm-ink: #1b1b1b;
  --clm-accent: #b5523c;
  --clm-bone: #f6f2ea;
  --clm-white: #ffffff;
  --clm-text: rgba(0, 0, 0, 0.7);
  --clm-text-invert: rgba(255, 255, 255, 0.8);
  --clm-line: rgba(0, 0, 0, 0.12);
  --clm-page: 1140px;
  --clm-col: 640px;
  --clm-gutter: 24px;
  --clm-heading: "Abril Fatface", Georgia, "Times New Roman", serif;
  --clm-body: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--clm-white);
  color: var(--clm-text);
  font-family: var(--clm-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.03em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.4em;
  color: var(--clm-ink);
  font-family: var(--clm-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 { font-size: 64px; }
h2 { font-size: 40px; }
h3 { font-size: 23px; }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--clm-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- layout ---------- */
.clm-wrap {
  width: 100%;
  max-width: var(--clm-page);
  margin-inline: auto;
  padding-inline: var(--clm-gutter);
}

/* Full-bleed bands. The original site runs the dark bands edge to edge. */
.alignfull,
.clm-dark,
.clm-strip {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- hero (655px) ---------- */
.clm-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 655px;
  text-align: center;
  padding-block: 96px;
  background-color: var(--clm-ink);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--clm-text-invert);
}

/* Dark overlay so white text keeps contrast over the photo. */
.clm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.clm-hero--overlay::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.clm-hero__title {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: var(--clm-heading);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.clm-hero__sub {
  max-width: var(--clm-col);
  margin: 0 auto;
  color: var(--clm-text-invert);
  font-size: 20px;
  line-height: 1.65;
}

/* ---------- white section (72px) ---------- */
.clm-section {
  padding-block: 72px;
  background: var(--clm-white);
  color: var(--clm-text);
}

.clm-section h2,
.clm-intro h2 {
  margin-bottom: 24px;
}

.clm-intro {
  max-width: var(--clm-col);
  margin-inline: auto;
  text-align: center;
}

.clm-intro p {
  max-width: 560px;
  margin-inline: auto;
  text-align: justify;
}

/* ---------- menu card ---------- */
.clm-card {
  max-width: 600px;
  margin-inline: auto;
  padding: 48px 56px;
  background: var(--clm-white);
  border: 1px solid var(--clm-bone);
  box-shadow: 0 18px 50px rgba(27, 27, 27, 0.06);
}

.clm-card > :last-child {
  margin-bottom: 0;
}

/* ---------- dish rows ---------- */
.clm-dish {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 11px;
  border-bottom: 1px solid var(--clm-line);
}

.clm-dish:last-child {
  border-bottom: 0;
}

.clm-dish__name {
  margin: 0;
  color: var(--clm-ink);
  font-family: var(--clm-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.clm-dish__note {
  display: block;
  margin-top: 2px;
  color: var(--clm-accent);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

.clm-dish__price {
  flex: 0 0 auto;
  margin: 0;
  padding-left: 16px;
  color: var(--clm-ink);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- dark band (551px) ---------- */
.clm-dark {
  padding-block: 96px;
  background: var(--clm-ink);
  color: var(--clm-text-invert);
}

.clm-dark h1,
.clm-dark h2,
.clm-dark h3,
.clm-dark h4 {
  color: #ffffff;
}

.clm-dark a {
  color: #ffffff;
}

.clm-dark a:hover,
.clm-dark a:focus {
  color: var(--clm-accent);
}

/* ---------- opening hours ---------- */
.clm-hours {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  column-gap: 14px;
  row-gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.clm-hours dt {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

.clm-hours dd {
  margin: 0;
  color: var(--clm-text-invert);
  text-align: left;
}

/* ---------- button ---------- */
/* clm-btn sits on the block wrapper, so the look goes on the anchor. */
.clm-btn {
  margin-top: 32px;
  padding: 0;
  background: none;
  border: 0;
  color: #ffffff;
  font-family: var(--clm-body);
  line-height: 1.2;
  text-transform: uppercase;
}

.clm-btn .wp-block-button__link {
  display: inline-block;
  padding: 11px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.clm-btn .wp-block-button__link:hover,
.clm-btn .wp-block-button__link:focus {
  background: transparent;
  border-color: #ffffff;
  color: inherit;
}

/* ---------- image strip (252px) ---------- */
.clm-strip {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 252px;
  padding-block: 48px;
  background-color: var(--clm-white);
  color: var(--clm-text);
  text-align: center;
}

.clm-strip > .wp-block-columns {
  max-width: var(--clm-page, 1140px);
  width: 100%;
  margin-inline: auto;
}

.clm-strip .wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* ---------- header (transparent over the hero) ---------- */
.clm-header {
  position: relative;
  z-index: 20;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--clm-ink);
}

.clm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.clm-brand {
  margin: 0;
  color: inherit;
  font-family: var(--clm-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.clm-brand a {
  color: inherit;
  text-decoration: none;
}

.clm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clm-nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.clm-nav a:hover,
.clm-nav a:focus {
  color: var(--clm-accent);
  opacity: 1;
}

/* Lift the header over the hero when the page has one. */
body:has(.clm-hero) .clm-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  color: #ffffff;
}

/* ---------- footer (106px) ---------- */
.clm-footer {
  margin: 0;
  padding-block: 42px;
  background: var(--clm-ink);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.clm-footer p {
  margin: 0;
  color: inherit;
  font-size: 13px;
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .clm-hero {
    min-height: min(560px, 88svh);
    padding-block: 72px;
  }

  .clm-section,
  .clm-dark {
    min-height: 0;
    padding-block: 48px;
  }

  .clm-strip {
    min-height: 180px;
  }

  .clm-strip .wp-block-columns {
    flex-wrap: wrap;
    gap: 24px;
  }

  .clm-strip .wp-block-column {
    flex-basis: 100% !important;
  }

  .clm-hero__title,
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 21px;
  }

  .clm-card {
    max-width: none;
    padding: 32px 24px;
  }

  .clm-wrap {
    padding-inline: 20px;
  }

  .clm-header__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
    padding-block: 10px;
  }

  .clm-brand,
  .clm-nav {
    flex-basis: 100%;
  }

  .clm-nav {
    width: 100%;
    gap: 16px 24px;
  }

  .clm-hours {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .clm-hero__title,
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .clm-btn,
  .clm-btn .wp-block-button__link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .clm-dish {
    gap: 12px;
  }
}
