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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--raiz-cream);
  color: var(--raiz-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 14px;
  z-index: 200;
  background: #fff;
  color: var(--raiz-blue);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 14px;
}

.section {
  padding: clamp(54px, 7vw, 96px) 0;
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--raiz-blue);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 31, 98, 0.22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  min-height: 86px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand__tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 68px;
  background:
    radial-gradient(circle at 50% 30%, var(--raiz-teal) 0 12%, transparent 13%),
    linear-gradient(180deg, #fff 0%, #fff7ea 44%, var(--raiz-gold) 100%);
  clip-path: polygon(7% 0, 93% 0, 55% 100%, 45% 100%);
  color: var(--raiz-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.8vw, 3.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow: 3px 3px 0 rgba(209, 167, 100, 0.84);
  white-space: nowrap;
}

.brand__logo img {
  max-height: 74px;
  width: auto;
}

.primary-nav__list,
.site-footer__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.7vw, 1.48rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(209, 167, 100, 0.55);
}

.primary-nav li:last-child a {
  background: #f2c76f;
  color: var(--raiz-blue);
  border-radius: 999px;
  padding: 12px 22px 14px;
  text-shadow: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 86px);
  background-color: var(--raiz-cream);
  background-repeat: repeat;
  border-top: 4px solid rgba(255, 255, 255, 0.74);
  padding: clamp(36px, 5vw, 70px) 0;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(286px, 37vw, 366px);
  margin-left: calc((100vw - min(1280px, calc(100vw - 32px))) / -2);
  padding: clamp(34px, 5.5vw, 72px) clamp(28px, 5vw, 58px);
  background: var(--raiz-gold);
  color: var(--raiz-blue);
  border-radius: 0 28px 28px 0;
}

.home-hero h1,
.page-hero h1,
.flavor-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.home-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.45rem, 5.5vw, 5.3rem);
}

.home-hero p {
  margin: 28px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  font-weight: 900;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 31, 98, 0.2);
}

.button--primary {
  background: var(--raiz-blue);
  color: #fff;
}

.button--ghost {
  background: #fff7ea;
  border-color: rgba(0, 31, 98, 0.24);
  color: var(--raiz-blue);
}

.tray-map {
  position: relative;
  justify-self: stretch;
}

.tray-feature {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.tray-map img {
  width: 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 31, 98, 0.26));
}

.tray-map--large {
  max-width: 1040px;
  margin-inline: auto;
}

.tray-map__hotspot {
  position: absolute;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  text-decoration: none;
  outline: 0;
}

.tray-map__hotspot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid transparent;
  border-radius: inherit;
  transition: background 160ms ease, border-color 160ms ease;
}

.tray-map__hotspot:hover::before,
.tray-map__hotspot:focus-visible::before {
  background: rgba(255, 247, 234, 0.2);
  border-color: #f2c76f;
}

.tray-map__hotspot span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 170px;
  transform: translateX(-50%);
  background: var(--raiz-blue);
  color: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 160ms ease;
}

.tray-map__hotspot:hover span,
.tray-map__hotspot:focus-visible span {
  opacity: 1;
}

.tray-map__hotspot--1 {
  left: 36%;
  top: 31.5%;
}

.tray-map__hotspot--2 {
  left: 57.4%;
  top: 31.5%;
}

.tray-map__hotspot--3 {
  left: 36%;
  top: 68%;
}

.tray-map__hotspot--4 {
  left: 57.4%;
  top: 68%;
}

.luck-action {
  margin: -8px 0 0;
}

.home-intro {
  background: var(--raiz-blue);
  color: #fff;
  padding: clamp(34px, 5vw, 60px) 0;
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 24px 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--raiz-gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-intro h2,
.section-heading h2,
.flavor-card h2,
.post-card h2,
.empty-state h2,
.editable-content h2,
.flavor-legal h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.12;
}

.home-intro h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.home-intro p:last-child {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.editable-content h2 {
  color: var(--raiz-blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.flavor-preview,
.page-content,
.single-section,
.blog-section,
.flavor-list-section,
.contact-section,
.flavor-detail,
.editable-section {
  background: #fffaf0;
}

.tray-section {
  background-color: var(--raiz-cream);
  background-image: linear-gradient(rgba(255, 247, 234, 0.8), rgba(255, 247, 234, 0.8));
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flavor-card,
.post-card,
.empty-state,
.flavor-legal section,
.contact-form-shell,
.raiz-contact-form {
  background: #fff;
  border: 1px solid rgba(0, 31, 98, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 31, 98, 0.08);
}

.flavor-card {
  min-height: 220px;
  overflow: hidden;
}

.flavor-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--raiz-ink);
  padding: 22px;
  text-decoration: none;
}

.flavor-card__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  background: var(--raiz-gold);
  color: var(--raiz-blue);
  border-radius: 999px;
  font-weight: 900;
}

.flavor-card h2 {
  color: var(--raiz-blue);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.flavor-card p {
  margin: 12px 0 0;
}

.page-hero,
.flavor-hero {
  background-color: var(--raiz-blue);
  background-repeat: repeat;
  background-size: auto;
  color: #fff;
  padding: clamp(66px, 10vw, 132px) 0 clamp(56px, 8vw, 102px);
}

.page-hero h1,
.flavor-hero h1 {
  color: #fff;
  max-width: 780px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  text-shadow: 2px 2px 0 rgba(209, 167, 100, 0.72);
}

.page-hero p,
.flavor-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.editable-content {
  font-size: 1.08rem;
}

.editable-content > * + * {
  margin-top: 1.05em;
}

.editable-content h3 {
  color: var(--raiz-blue);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.editable-content a,
.text-link {
  color: var(--raiz-blue);
  font-weight: 900;
  text-decoration-color: var(--raiz-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
}

.contact-copy {
  background: var(--raiz-blue);
  color: #fff;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
}

.contact-copy h2,
.contact-copy h3 {
  color: #fff;
}

.contact-form-shell {
  padding: 0;
  overflow: hidden;
}

.raiz-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  box-shadow: none;
  padding: clamp(22px, 4vw, 36px);
}

.raiz-contact-form__field,
.raiz-contact-form__consent {
  margin: 0;
}

.raiz-contact-form__field--wide,
.raiz-contact-form__consent,
.raiz-contact-form .button,
.form-message {
  grid-column: 1 / -1;
}

.raiz-contact-form__field--hidden {
  position: absolute;
  left: -9999px;
}

.raiz-contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--raiz-blue);
  font-weight: 900;
}

.raiz-contact-form input[type="text"],
.raiz-contact-form input[type="email"],
.raiz-contact-form input[type="tel"],
.raiz-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 31, 98, 0.22);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--raiz-ink);
  font: inherit;
  padding: 12px 13px;
}

.raiz-contact-form textarea {
  resize: vertical;
}

.raiz-contact-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--raiz-ink);
  font-weight: 700;
}

.raiz-contact-form__consent input {
  margin-top: 5px;
}

.form-message {
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
  font-weight: 900;
}

.form-message--success {
  background: #e8f7ec;
  color: #126b31;
}

.form-message--error {
  background: #fff0e8;
  color: #8a3200;
}

.flavor-hero__inner,
.flavor-detail__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(30px, 6vw, 72px);
}

.flavor-hero__inner {
  align-items: center;
}

.flavor-hero__image {
  margin: 0;
}

.flavor-hero__image img {
  width: 100%;
  border: 8px solid rgba(255, 247, 234, 0.86);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.flavor-legal {
  display: grid;
  gap: 16px;
}

.flavor-legal section {
  padding: 22px;
}

.flavor-legal h2 {
  color: var(--raiz-blue);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.flavor-legal p {
  margin: 0;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.nutrition-table th,
.nutrition-table td {
  border-bottom: 1px solid rgba(0, 31, 98, 0.12);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.nutrition-table td {
  text-align: right;
  font-weight: 900;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
}

.post-card a {
  display: block;
  height: 100%;
  color: var(--raiz-ink);
  text-decoration: none;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body,
.empty-state {
  padding: 22px;
}

.post-card time {
  color: var(--raiz-teal);
  font-weight: 900;
}

.post-card h2,
.empty-state h2 {
  color: var(--raiz-blue);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  margin-top: 8px;
}

.pagination {
  grid-column: 1 / -1;
}

.empty-note {
  background: #fff;
  border: 1px solid rgba(0, 31, 98, 0.12);
  border-radius: 8px;
  margin: 0;
  padding: 18px;
  font-weight: 800;
}

.site-footer {
  background: var(--raiz-blue);
  color: #fff;
  padding: 36px 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

.site-footer__menu a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .site-header__inner {
    min-height: 78px;
  }

  .home-hero__inner {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    margin-left: 0;
    border-radius: 8px;
  }

  .tray-map {
    max-width: 820px;
    margin-inline: auto;
  }

  .flavor-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 68px;
  }

  .brand__tile {
    width: 24px;
    height: 50px;
    font-size: 17px;
  }

  .brand__name {
    font-size: clamp(1.35rem, 7vw, 2.2rem);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--raiz-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 16px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .primary-nav a,
  .primary-nav li:last-child a {
    border-radius: 8px;
    font-size: 1.1rem;
    padding: 12px 14px;
    text-shadow: none;
  }

  .home-hero {
    min-height: auto;
    padding: 24px 0 38px;
    background-size: 190px auto;
  }

  .home-hero__copy {
    min-height: 0;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .home-hero p {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
    margin-top: 18px;
  }

  .home-hero__actions {
    margin-top: 22px;
  }

  .home-intro__grid,
  .contact-grid,
  .flavor-hero__inner,
  .flavor-detail__grid {
    grid-template-columns: 1fr;
  }

  .flavor-grid,
  .post-grid,
  .raiz-contact-form {
    grid-template-columns: 1fr;
  }

  .tray-map__hotspot {
    width: 20%;
  }

  .tray-map__hotspot span {
    display: none;
  }

  .luck-action {
    width: 100%;
    margin-top: 0;
  }

  .page-hero,
  .flavor-hero {
    padding: 46px 0;
    background-size: 190px auto;
  }

  .page-hero h1,
  .flavor-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .page-hero p,
  .flavor-hero p {
    font-size: 1rem;
  }

  .site-footer__inner {
    display: grid;
  }
}

@media (max-width: 460px) {
  .section-inner,
  .site-header__inner,
  .home-hero__inner {
    width: min(100% - 24px, 1160px);
  }

  .home-hero__copy {
    padding: 24px 18px;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .flavor-card a,
  .post-card__body,
  .empty-state,
  .flavor-legal section {
    padding: 18px;
  }

  .raiz-contact-form {
    padding: 20px 16px;
  }

  .nutrition-table th,
  .nutrition-table td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .nutrition-table td {
    padding-top: 0;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
  }

  .brand__name {
    font-size: 1.22rem;
  }

  .menu-toggle {
    padding: 8px 10px;
  }
}
