/* A&B Laticínios — landing page
   Brand colors come from the store's logo, TV board and flyers. */

:root {
  --orange: #fb9805;
  --orange-hover: #ffac33;
  --brown: #762706;
  --brown-deep: #4a1703;
  --cream-light: #fff7e8;
  --sand: #f6ead6;

  --bg: #fffaf1;
  --surface: #ffffff;
  --text: #2a1405;
  --text-dim: #7a5a44;
  --line: #efe0c8;

  /* Per-surface text roles; dark panels override these. */
  --ink: var(--brown-deep);
  --dim: var(--text-dim);
  --rule: rgba(74, 23, 3, 0.13);
  --eyebrow: var(--brown);
  --dark-bg:
    radial-gradient(60% 70% at 78% 38%, rgba(251, 152, 5, 0.28), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(200, 16, 46, 0.18), transparent 70%),
    linear-gradient(160deg, #5a1d05 0%, var(--brown-deep) 45%, #2e0e02 100%);

  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --max: 1180px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--orange);
  color: var(--brown-deep);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Surfaces ---------- */

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 16px;
  border-radius: 32px;
}
.panel--dark {
  --ink: var(--cream-light);
  --dim: rgba(255, 247, 232, 0.66);
  --rule: rgba(255, 247, 232, 0.14);
  --eyebrow: var(--orange);
  color: var(--ink);
  background: var(--dark-bg);
}
.panel--sand {
  background: var(--sand);
}

/* Woodcut art from the store's own boards, shown as a faint tinted silhouette. */
.silhouette {
  position: absolute;
  z-index: -1;
  background: var(--tint, var(--orange));
  opacity: var(--alpha, 0.12);
  -webkit-mask: var(--src) no-repeat bottom / contain;
  mask: var(--src) no-repeat bottom / contain;
  pointer-events: none;
}

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 1px;
  background: var(--orange);
}
h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--orange);
}
.lead {
  max-width: 480px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--dim);
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn span {
  transition: transform 0.25s var(--ease);
}
.btn:hover span {
  transform: translateX(3px);
}
.btn:focus-visible,
.nav__toggle:focus-visible,
.nav__links a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--orange);
  color: var(--brown-deep);
}
.btn--primary:hover {
  background: var(--orange-hover);
}
.btn--dark {
  background: var(--brown-deep);
  color: var(--cream-light);
}
.btn--dark:hover {
  background: var(--brown);
}
.btn--ghost {
  border-color: var(--rule);
  color: var(--ink);
}
.panel--dark .btn--ghost {
  border-color: rgba(255, 247, 232, 0.32);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--sm {
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, 0.84);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brown-deep);
}
.brand b {
  color: var(--orange);
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--brown-deep);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.nav__toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  top: 50%;
  left: 13px;
  right: 13px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--brown-deep);
  transition: transform 0.3s var(--ease);
}
.nav__toggle span:first-child {
  transform: translateY(-3.5px);
}
.nav__toggle span:last-child {
  transform: translateY(3.5px);
}
.nav__toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 8px;
}
.hero__panel {
  display: flex;
  flex-direction: column;
  min-height: min(780px, calc(100svh - var(--nav-h) - 16px));
}
.hero__cactus--l {
  --src: url("assets/cactus-left.png");
  bottom: 0;
  left: -2%;
  width: 30%;
  aspect-ratio: 442 / 385;
}
.hero__cactus--r {
  --src: url("assets/cactus-right.png");
  bottom: 0;
  right: -3%;
  width: 34%;
  aspect-ratio: 1;
}
.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}
.hero h1 {
  max-width: 11ch;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero .lead {
  max-width: 440px;
  margin-top: 28px;
}

/* Round seal: the logo on a cream disc inside a slowly turning ring of text. */
.hero__seal {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
}
.hero__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: turn 80s linear infinite;
}
.hero__ring text {
  fill: var(--dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
.hero__ring-line {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
}
.hero__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream-light);
  box-shadow:
    0 0 0 10px rgba(255, 247, 232, 0.06),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.hero__disc img {
  width: 60%;
  height: auto;
  /* Optical centring, tuned by eye: the hat's brim and tassels stick out on
     the left of the A and the lettering sits low under the swirl, so the image
     moves left and up from its box centre. */
  translate: -5% -3%;
}
@keyframes turn {
  to { rotate: 360deg; }
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
}
.hero__meta > div {
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule);
}
.hero__meta > div + div {
  padding-left: 28px;
}
.hero__meta dt,
.info dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__meta dt {
  margin-bottom: 4px;
  color: rgba(255, 247, 232, 0.45);
}
.hero__meta dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

/* Live open/closed dot (set by script.js). */
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.is-closed .dot {
  background: var(--dim);
  box-shadow: 0 0 0 4px var(--rule);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 36px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--brown-deep);
  animation: marquee 48s linear infinite;
}
.marquee i {
  font-size: 13px;
  font-style: normal;
  color: var(--orange);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 0;
}
.head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.head h2 {
  max-width: 14ch;
}
.head .lead {
  justify-self: end;
  max-width: 400px;
  margin: 0;
}

/* Scroll reveal, enabled by script.js; content stays visible without it. */
.js .reveal:not(.is-in) {
  opacity: 0;
}
.js .reveal.is-in {
  animation: rise 0.8s var(--ease) var(--d, 0s) both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

/* ---------- Product categories ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cats > :nth-child(3n + 2) { --d: 0.08s; }
.cats > :nth-child(3n) { --d: 0.16s; }
.cat {
  display: flex;
  flex-direction: column;
  min-height: 224px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
/* Line icons drawn for the store, in the same thin stroke as the page's rules. */
.cat__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: auto;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: border-color 0.4s, background-color 0.4s;
}
.cat__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat__icon .a {
  stroke: var(--orange);
}
.cat__icon .f {
  fill: var(--orange);
  stroke: none;
}
.cat:hover .cat__icon {
  border-color: var(--orange);
  background: rgba(251, 152, 5, 0.08);
}
.cat:hover {
  transform: translateY(-4px);
  border-color: var(--rule);
  box-shadow: 0 28px 48px -32px rgba(74, 23, 3, 0.4);
}
.cat h3 {
  margin: 40px 0 10px;
  font-size: 26px;
}
.cat p {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}
.cat--feature {
  border-color: transparent;
  background: var(--dark-bg);
}

/* ---------- For businesses ---------- */

.biz {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 112px;
}
.biz h2 {
  max-width: 13ch;
}
.biz__list {
  --d: 0.1s;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.biz__list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.biz__list span {
  min-width: 2.4em;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.biz__guitar {
  --src: url("assets/guitar.png");
  --alpha: 0.07;
  right: -6%;
  bottom: -18%;
  width: 36%;
  aspect-ratio: 614 / 718;
  rotate: 14deg;
}

/* ---------- Why A&B ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}
.why__head {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}
.why__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.why__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.why__list li:nth-child(2) { --d: 0.08s; }
.why__list li:nth-child(3) { --d: 0.16s; }
.why__n {
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brown);
}
.why__list h3 {
  font-size: 26px;
}
.why__list p {
  margin: 10px 0 0;
  color: var(--dim);
}

/* ---------- Visit ---------- */

.visit {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 104px;
  padding-bottom: 104px;
}
.visit h2 {
  max-width: 12ch;
}
.visit__cactus {
  --src: url("assets/cactus-right.png");
  --tint: var(--brown);
  --alpha: 0.07;
  right: -2%;
  bottom: 0;
  width: 30%;
  aspect-ratio: 1;
}
.info {
  --d: 0.1s;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.info > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.info dt {
  padding-top: 4px;
}
.info dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}
.info a {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.info a:hover {
  color: var(--brown);
}
.info__sub {
  font-size: 14px;
  color: var(--dim);
}
.info__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--dim);
}
.info__status[hidden] {
  display: none;
}

/* ---------- Footer ---------- */

.footer {
  padding: 112px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
}
.footer__brand p {
  max-width: 280px;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--text-dim);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
}
.footer__col a {
  width: fit-content;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__col a:hover {
  color: var(--brown);
}
.footer__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}
.footer__bottom p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .nav__inner {
    grid-template-columns: 1fr auto;
  }
  .nav__toggle {
    display: block;
  }
  .nav__links {
    display: none;
  }
  .nav.is-open .nav__links {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg);
    box-shadow: 0 24px 48px -24px rgba(74, 23, 3, 0.35);
  }
  .nav.is-open .nav__links a {
    padding: 14px 16px;
    font-size: 17px;
    color: var(--brown-deep);
  }
  .nav.is-open .nav__links a::after {
    display: none;
  }

  .hero__panel {
    min-height: 0;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 56px;
  }
  .hero__seal {
    width: min(78%, 360px);
  }
  .hero__cactus--l {
    width: 36%;
  }
  .hero__cactus--r {
    width: 40%;
  }

  .section {
    padding: 88px 0;
  }
  .head {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 40px;
  }
  .head .lead {
    justify-self: start;
    margin-top: 20px;
  }
  .cats {
    grid-template-columns: 1fr 1fr;
  }
  .biz,
  .why,
  .visit {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .biz,
  .visit {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .why__head {
    position: static;
  }
  .biz__guitar {
    width: 60%;
    bottom: -10%;
  }
  .visit__cactus {
    width: 50%;
  }
  .footer {
    padding-top: 88px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-inline: 16px;
  }
  .brand span {
    display: none;
  }
  .footer .brand span {
    display: inline;
  }
  .panel {
    margin: 0 8px;
    border-radius: 24px;
  }
  .hero {
    padding-top: 4px;
  }
  .hero__grid {
    padding-top: 44px;
    padding-bottom: 40px;
  }
  .hero .lead {
    margin-top: 22px;
    font-size: 17px;
  }
  .eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }
  .eyebrow::before {
    width: 24px;
  }
  .actions {
    margin-top: 32px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .hero__meta {
    grid-template-columns: 1fr;
  }
  .hero__meta > div {
    padding: 16px 0;
  }
  .hero__meta > div + div {
    padding-left: 0;
  }
  .hero__meta > div:last-child {
    padding-bottom: 22px;
  }
  .marquee {
    padding: 28px 0;
  }
  .marquee__track {
    font-size: 19px;
  }
  .cats {
    grid-template-columns: 1fr;
  }
  .cat {
    min-height: 0;
    padding: 28px;
  }
  .cat h3 {
    margin-top: 32px;
    font-size: 24px;
  }
  .biz,
  .visit {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .biz__list li {
    padding: 20px 0;
  }
  .why__list li {
    grid-template-columns: 48px 1fr;
    padding: 28px 0;
  }
  .why__list h3 {
    font-size: 22px;
  }
  .info > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
