/* =========================================================
   Marangaroo Pizza — matched to Wix site tokens
   Source: https://caohai31.wixsite.com/marangaroo-pizza
   Fonts: Anton (headings), Wix Madefor Text (body)
   Colors: #a0392b, #fece27, #F5F5F0, #1A1A1A
   ========================================================= */

:root {
  /* Exact Wix theme colors */
  --accent-1: #a0392b;
  --accent-2: #a0392b;
  --accent-3: #1a1a1a;
  --accent-4: #f5f5f0;
  --yellow: #fece27;
  --base-1: #ffffff;
  --base-2: #000000;

  --font-display: "Anton", sans-serif;
  --font-body: "Wix Madefor Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Desktop sizes = Wix ratios × 1280 */
  --h1: 72px;
  --h2: 56px;
  --h3: 40px;
  --h4: 32px;
  --h5: 24px;
  --h6: 18px;
  --p1: 18px;
  --p2: 16px;

  --pad-x: clamp(1rem, 2.5vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--p2);
  font-weight: 400;
  line-height: 1.35;
  color: var(--base-2);
  background: var(--base-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

/* ---------- Typography (Wix heading / paragraph scale) ---------- */
.t-h1,
.t-h2,
.t-h3,
.t-h4,
.t-h5,
.t-h6 {
  font-family: var(--font-display);
  font-weight: 400; /* Anton is single-weight; Wix marks 700 but face is 400 */
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.t-h1 {
  font-size: clamp(32px, 5.625vw, var(--h1));
  line-height: 1em;
}

.t-h2 {
  font-size: clamp(30px, 4.375vw, var(--h2));
  line-height: 1em;
}

.t-h3 {
  font-size: clamp(26px, 3.125vw, var(--h3));
  line-height: 1.1em;
}

.t-h4 {
  font-size: clamp(24px, 2.5vw, var(--h4));
  line-height: 1.1em;
}

.t-h5 {
  font-size: clamp(20px, 1.875vw, var(--h5));
  line-height: 1.1em;
}

.t-h6 {
  font-size: clamp(16px, 1.40625vw, var(--h6));
  line-height: 1.1em;
}

.t-p1 {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.40625vw, var(--p1));
  font-weight: 400;
  line-height: 1.35em;
}

.t-p2 {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.25vw, var(--p2));
  font-weight: 400;
  line-height: 1.35em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.875vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1em;
  padding: 0.65em 1.15em;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.btn--black {
  background: var(--base-2);
  color: var(--base-1);
}

.btn--black:hover {
  background: var(--accent-1);
  color: var(--base-1);
}

.btn--red {
  background: var(--accent-2);
  color: var(--base-1);
}

.btn--red:hover {
  background: var(--base-2);
  color: var(--base-1);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--accent-1);
}

.btn--yellow:hover {
  background: var(--accent-1);
  color: var(--yellow);
}

/* ---------- HEADER ---------- */
.header {
  width: 100%;
  background: var(--base-1);
  padding: 1.5rem 0 1.25rem;
}

.header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.header__brand-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header__logo {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  flex-shrink: 0;
}

.header__title {
  color: var(--accent-1);
}

.header__tagline {
  margin-top: 0;
  max-width: 34rem;
  color: var(--accent-1);
}

.header .btn {
  margin-top: 0.4rem;
}

/* ---------- HERO ---------- */
.hero {
  width: 100%;
  line-height: 0;
}

.hero img {
  width: 100%;
  height: clamp(220px, 38vw, 480px);
  object-fit: cover;
}

/* ---------- TICKER ---------- */
.ticker {
  width: 100%;
  background: #ffffff;
  color: #000000;
  overflow: hidden;
  padding: 0.45rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  line-height: 1;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 40s linear infinite;
  will-change: transform;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.85rem;
  padding-right: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.ticker__group span,
.ticker__group i {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.ticker__group i {
  font-style: normal;
}

@keyframes tick {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- FLAVORS ---------- */
.flavors {
  width: 100%;
  background: var(--accent-4);
  padding: 4rem 0;
}

.flavors__title {
  color: var(--base-2);
  text-transform: none;
  text-align: left;
}

.flavors__lead {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: var(--base-2);
  text-align: left;
}

.flavors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.5rem);
  width: 100%;
}

.flavor img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.flavor__body {
  border: 1.5px solid var(--yellow);
  border-top: 0;
  background: var(--base-1);
  padding: 0.9rem 0.95rem 1.15rem;
}

.flavor__body .t-h5 {
  text-transform: none;
  margin-bottom: 0.4rem;
  color: var(--base-2);
}

.flavor__body .t-p2 {
  color: var(--base-2);
}

/* ---------- POPULAR ---------- */
.popular {
  width: 100%;
  background: var(--base-1);
  padding: 4rem 0;
}

.popular__title {
  color: var(--base-2);
  text-align: left;
  margin-bottom: 1.75rem;
}

.popular__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  width: 100%;
}

.pop img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.pop__body {
  padding: 1.05rem 1.15rem 1.3rem;
}

.pop--red {
  background: var(--accent-2);
  padding: 0.7rem;
}

.pop--red img {
  display: block;
}

.pop--red .pop__body {
  padding: 0.95rem 0.25rem 0.45rem;
}

.pop--red .t-h3 {
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.pop--red .t-p2 {
  color: var(--base-1);
}

.pop--plain .t-h3 {
  color: var(--accent-1);
  margin-bottom: 0.4rem;
}

.pop--plain .t-p2 {
  color: var(--base-2);
}

.pop--plain .pop__body {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- TRADITION ---------- */
.tradition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 440px;
}

.tradition__copy {
  background: var(--accent-2);
  color: var(--base-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 5vw, 4.5rem);
}

.tradition__copy .t-h1 {
  color: var(--base-1);
  margin-bottom: 1.35rem;
}

.tradition__copy .t-p1 {
  color: var(--base-1);
  max-width: 34rem;
}

.tradition__media {
  overflow: hidden;
  background: #1a120e;
  min-height: 340px;
}

.tradition__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* ---------- READY ---------- */
.ready {
  width: 100%;
  background: var(--yellow);
  padding: 2.5rem 0;
}

.ready__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ready__copy .t-h2 {
  color: var(--accent-1);
  margin-bottom: 0.4rem;
}

.ready__copy .t-p1 {
  color: var(--base-2);
  max-width: 32rem;
}

/* ---------- FOOTER ---------- */
.footer {
  width: 100%;
  background: var(--accent-3);
  color: var(--base-1);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer__brand img {
  width: clamp(100px, 12vw, 140px);
  height: auto;
}

.footer__brand .t-h6 {
  text-transform: none;
  color: var(--base-1);
  font-size: clamp(26px, 2.8vw, 40px);
}

.footer .t-p2,
.footer__copy {
  font-family: var(--font-body);
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.35em;
  color: var(--base-1);
  opacity: 0.9;
}

.footer__right .t-h6 {
  color: var(--base-1);
  margin-bottom: 0.65rem;
  font-size: clamp(22px, 2.2vw, 32px);
}

.footer__right .t-p2 {
  margin-bottom: 0.35rem;
}

.footer__right a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .flavors__grid {
    grid-template-columns: 1fr;
  }

  .popular__grid {
    grid-template-columns: 1fr;
  }

  .tradition {
    grid-template-columns: 1fr;
  }

  .ready__inner,
  .footer__inner,
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero img {
    height: 200px;
  }

  .flavors,
  .popular {
    padding: 2.75rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}
