/* ============================================================
   SOL & SOUL · Cozinha Groovy (1974)
   Anos 70 · mostarda, laranja queimada, abacate, chocolate
   Nested CSS
   ============================================================ */

:root {
  --cream:   #f6ead0;
  --mustard: #e8a72e;
  --orange:  #d1522a;
  --rust:    #b8451f;
  --avocado: #7a8b3c;
  --avo-dk:  #5e6d2b;
  --choco:   #4a2f22;
  --teal:    #2f8f8f;
  --ink:     #3a2418;

  --font-groovy: "Shrikhand", Georgia, serif;
  --font-body:   "DM Sans", system-ui, sans-serif;

  --maxw: 1080px;
  --ease: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;

  &.is-loading { overflow: hidden; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mustard); color: var(--choco); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  &.is-visible { opacity: 1; transform: none; }
}

/* ============================================================
   Intro: rising sun
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f6c85c, var(--orange));
  transition: opacity 0.6s ease, visibility 0.6s;

  &.is-done { opacity: 0; visibility: hidden; }

  & .intro__sun {
    width: clamp(120px, 30vw, 180px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #fff1b8, var(--mustard));
    box-shadow: 0 0 0 12px rgba(255,255,255,0.25), 0 0 80px rgba(255,241,184,0.9);
    transform: translateY(120px) scale(0.6);
    opacity: 0;
    animation: rise 1.2s var(--ease) 0.1s forwards;
  }
  & .intro__word {
    font-family: var(--font-groovy);
    font-size: clamp(2.2rem, 9vw, 3.8rem);
    color: var(--cream);
    text-shadow: 3px 3px 0 var(--rust);
    margin: 0;
    opacity: 0;
    animation: pop 0.7s var(--ease) 0.7s forwards;
  }
  & .intro__sub {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--choco);
    margin: 0;
    opacity: 0;
    animation: pop 0.7s var(--ease) 1s forwards;
  }
}
@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }

/* ============================================================
   Header
   ============================================================ */
.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s;

  &.is-scrolled {
    background: var(--cream);
    box-shadow: 0 4px 0 var(--mustard);
    padding-block: 0.6rem;
  }

  & .logo { font-family: var(--font-groovy); font-size: 1.5rem; color: var(--rust); }

  & .nav {
    display: flex;
    gap: clamp(0.8rem, 2.5vw, 1.8rem);
    & a {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--choco);
      position: relative;
      &::after {
        content: ""; position: absolute; left: 0; bottom: -5px;
        width: 100%; height: 3px; border-radius: 3px;
        background: var(--orange);
        transform: scaleX(0); transform-origin: right;
        transition: transform 0.35s var(--ease);
      }
      &:hover::after { transform: scaleX(1); transform-origin: left; }
    }
  }

  & .head__est {
    font-family: var(--font-groovy);
    font-size: 1rem;
    color: var(--avocado);
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;

  /* 70s sunburst rays */
  & .hero__burst {
    position: absolute;
    top: 50%; left: 50%;
    width: 200vmax; height: 200vmax;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
      from 0deg at 50% 50%,
      #f4c85c 0deg 12deg,
      #eab949 12deg 24deg
    );
    opacity: 0.55;
    animation: spin 90s linear infinite;
    z-index: 0;
  }
  &::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 46%, rgba(246,234,208,0.92) 26%, rgba(246,234,208,0.5) 46%, transparent 70%);
    z-index: 1;
  }

  & .hero__inner { position: relative; z-index: 2; max-width: 720px; }

  & .hero__kicker {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--cream);
    background: var(--avocado);
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
  }

  & .hero__title {
    font-family: var(--font-groovy);
    font-size: clamp(2.8rem, 12vw, 6.5rem);
    color: var(--rust);
    line-height: 0.98;
    text-shadow: 4px 4px 0 var(--mustard);
    & span { color: var(--avocado); text-shadow: 4px 4px 0 var(--choco); }
  }

  & .hero__lede {
    max-width: 32rem;
    margin: 1.6rem auto 2.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--choco);
  }

  & .hero__disc {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 2.4rem;
    animation: spin 12s linear infinite;
  }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .hero__disc { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: translateX(-50%) rotate(-12deg); } 50% { transform: translateX(-50%) rotate(12deg); } }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  background: var(--rust);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--choco);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  &:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--choco); }
  &:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--choco); }
}

/* ============================================================
   Wavy dividers
   ============================================================ */
.wave {
  line-height: 0;
  & svg { width: 100%; height: clamp(45px, 7vw, 90px); display: block; }
}
.wave--down svg path { fill: var(--mustard); }
.wave--up svg path { fill: var(--mustard); }

/* the fill colour is set to match the zone the wave leads INTO / OUT OF */
.zone--sun { background: var(--mustard); }
.zone--rust { background: var(--orange); }
.zone--avo { background: var(--avocado); }

/* make each wave blend the two adjacent zones */
.hero + .wave--down svg path { fill: var(--mustard); }        /* into brunch (sun) */
#brunch + .wave--up svg path { fill: var(--mustard); }         /* out of brunch  */
.wave--up + .zone--rust { }
#alma + .wave--down svg path { fill: var(--orange); }          /* out of alma    */
#doces + .wave--up svg path { fill: var(--avocado); }          /* out of doces   */

/* ============================================================
   Zones (menu sections)
   ============================================================ */
.zone {
  padding: clamp(1rem, 3vw, 2rem) clamp(1.2rem, 5vw, 2.5rem) clamp(3rem, 7vw, 5rem);

  & > * { max-width: var(--maxw); margin-inline: auto; }
}

.head2 {
  text-align: center;
  margin-bottom: 2.4rem;

  & .head2__badge {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    font-family: var(--font-groovy);
    font-size: 1.3rem;
    color: var(--rust);
    background: var(--cream);
    border-radius: 50%;
    box-shadow: 0 4px 0 var(--choco);
    margin-bottom: 0.8rem;
  }
  & .head2__title {
    font-family: var(--font-groovy);
    font-size: clamp(2rem, 6vw, 3.4rem);
    color: var(--cream);
    text-shadow: 3px 3px 0 var(--choco);
  }
  & .head2__sub {
    font-weight: 700;
    color: var(--choco);
    margin-top: 0.3rem;
  }
}

/* ---------- Dishes ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.dish {
  background: var(--cream);
  border-radius: 22px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 6px 0 var(--choco);
  border: 3px solid var(--choco);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);

  & h3 { font-family: var(--font-groovy); font-size: 1.3rem; color: var(--rust); }
  & p { font-size: 0.92rem; color: var(--ink); margin: 0.5rem 0 0.9rem; }

  & .tag {
    display: inline-block;
    font-family: var(--font-groovy);
    font-size: 1rem;
    color: var(--cream);
    background: var(--avocado);
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
  }

  &--dark {
    background: var(--choco);
    border-color: var(--cream);
    box-shadow: 0 6px 0 var(--rust);
    & h3 { color: var(--mustard); }
    & p { color: #f0e2cf; }
    & .tag { background: var(--mustard); color: var(--choco); }
  }

  &:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 12px 0 var(--choco); }
  &--dark:hover { box-shadow: 0 12px 0 var(--rust); }
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  position: relative;
  background: var(--choco);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem 3rem;

  & .foot__vinyl {
    display: block;
    width: 90px; height: 90px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background:
      radial-gradient(circle, var(--mustard) 0 12%, transparent 13%),
      repeating-radial-gradient(circle, #2a1a12 0 3px, #1f130d 3px 6px);
    animation: spin 6s linear infinite;
  }
  & .foot__mark { font-family: var(--font-groovy); font-size: 2rem; color: var(--mustard); margin: 0 0 0.3rem; }
  & .foot__tag { font-weight: 700; color: var(--orange); margin: 0; }
  & .foot__meta { margin: 0.6rem 0 0; color: #e7d6c0; font-size: 0.9rem; }
  & .foot__note { margin-top: 1.2rem; font-family: var(--font-groovy); font-size: 1rem; color: var(--avocado); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .head .head__est { display: none; }
  .head .nav { gap: 0.7rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .intro__sun, .intro__word, .intro__sub { opacity: 1; transform: none; }
}
