@layer components {

/* ── Social links (Facebook, Instagram) ──
   Four placements, all fed by src/_data/social.js:
   the desktop nav, the mobile menu, the "Tell your friends" section
   between Find Us and Our Story, and a footer column. */

/* Round outline icon: the desktop nav and the mobile menu. */
.social-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--brand-primary);
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

a.social-icon:hover,
a:hover > .social-icon {
  background: var(--brand-primary);
  color: #fff;
}

/* Desktop nav: the pair sits last, after Place Order. */
.nav__social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* The nav's hover underline is for text links, not round icons. */
.nav__links .nav__social a::after {
  display: none;
}

/* Mobile menu: last group in the panel, where Place Order used to be. */
.nav__panel-social {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.nav__panel-social-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav__panel .nav__panel-social a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

/* ── Tell your friends ── */
.social {
  background: linear-gradient(180deg, var(--brand-primary) 51.92%, var(--green-700) 100%);
  color: #fff;
}

.social__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: center;
}

.social h2 {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.social__intro p {
  margin: 0;
  max-width: 34ch;
  color: #e6f3dc;
}

.social__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
}

.social-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-card__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

.social-card__badge svg {
  width: 24px;
  height: 24px;
}

/* Each network's own brand color, so the cards read at a glance. */
.social-card__badge--facebook {
  background: #1877f2;
}

.social-card__badge--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-card__name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brand-primary);
}

.social-card__handle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* flex: 1 pushes the buttons to the bottom, so both cards' buttons line up. */
.social-card__body {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.social-card__stars {
  color: var(--brand-secondary);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.social-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-card__actions .btn {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Secondary button: green outline on white. Lives here until another
   section needs one. */
.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  box-shadow: inset 0 0 0 1.5px var(--brand-primary);
}

.btn--outline:hover {
  background: var(--brand-tertiary);
}

/* Footer column: same rows and icon size as Contact Us. */
.footer__social h3 {
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

}

@layer responsive {

@media (max-width: 900px) {
  .social__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .social__cards {
    grid-template-columns: 1fr;
  }
}

}
