/* Fire & Dine global button consistency layer.
   Keeps primary/secondary button hierarchy while standardizing dimensions,
   typography, borders, radius, spacing and interaction across the public site. */

:root {
  --fd-button-gold: #fcbc4d;
  --fd-button-gold-hover: #f5b33f;
  --fd-button-ink: #111111;
  --fd-button-light: #ffffff;
  --fd-button-height: 48px;
  --fd-button-radius: 2px;
  --fd-button-pad-x: 24px;
}

html body :is(
  a.btn,
  button.btn,
  input.btn,
  main button[type="submit"],
  main input[type="submit"]
) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--fd-button-height) !important;
  padding: 0 var(--fd-button-pad-x) !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: var(--fd-button-radius) !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease !important;
}

/* Primary / gold CTAs */
html body :is(
  .btn-gold,
  .btn-primary,
  button.btn-gold,
  main button[type="submit"]:not(.btn-outline),
  main input[type="submit"]:not(.btn-outline)
) {
  background: var(--fd-button-gold) !important;
  background-image: none !important;
  border-color: var(--fd-button-gold) !important;
  color: var(--fd-button-ink) !important;
  -webkit-text-fill-color: var(--fd-button-ink) !important;
  box-shadow: none !important;
}

/* Secondary CTA source of truth: match the Compare Products outline treatment. */
html body :is(.btn-outline, .btn-secondary) {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--fd-button-gold) !important;
  border-radius: var(--fd-button-radius) !important;
  box-shadow: none !important;
}

/* On genuinely light content surfaces retain readable dark default text,
   while the border and hover treatment remain globally identical. */
html body :is(
  .section-light,
  .theme-light,
  .fd-alt-white,
  .cream
) :is(.btn-outline, .btn-secondary) {
  background: transparent !important;
  border-color: var(--fd-button-gold) !important;
  color: var(--fd-button-ink) !important;
  -webkit-text-fill-color: var(--fd-button-ink) !important;
}

/* Dark CTA/hero surfaces must win over any surrounding light-section wrapper. */
html body :is(
  .page-hero,
  .hero,
  .cta,
  .site-final-cta,
  .section-dark,
  .theme-dark,
  .footer
) :is(.btn-outline, .btn-secondary) {
  background: transparent !important;
  border-color: var(--fd-button-gold) !important;
  color: var(--fd-button-light) !important;
  -webkit-text-fill-color: var(--fd-button-light) !important;
}

/* Featured product cards: keep both actions readable on the dark cards. */
html body :is(.featured-products, .products, .product-grid) .product :is(a.btn, button.btn),
html body .product :is(a.btn, button.btn) {
  background: transparent !important;
  background-image: none !important;
  border-color: var(--fd-button-gold) !important;
  color: var(--fd-button-light) !important;
  -webkit-text-fill-color: var(--fd-button-light) !important;
}

/* Keep button pairs visually balanced and aligned. */
html body :is(.actions, .btn-group, .form-actions, .centred-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

html body :is(.actions, .btn-group, .form-actions, .centred-actions) > :is(a.btn, button.btn, input.btn, button[type="submit"], input[type="submit"]) {
  margin: 0 !important;
}

/* Shop final CTA is the interaction source of truth.
   Apply its lift, shadow and timing only to CTA/hero action buttons, not forms,
   product controls, navigation or backend controls. */
html body :is(
  .cta,
  .site-final-cta,
  .image-cta,
  .faq-cta,
  .maintenance-cta,
  .confidence-section,
  .hero .actions,
  .page-hero .actions
) :is(a.btn, button.btn):is(:hover, :focus-visible) {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(252, 188, 77, .22) !important;
}

html body :is(
  .cta,
  .site-final-cta,
  .image-cta,
  .faq-cta,
  .maintenance-cta,
  .confidence-section,
  .hero .actions,
  .page-hero .actions
) :is(.btn-gold, .btn-primary):is(:hover, :focus-visible) {
  background: var(--fd-button-gold-hover) !important;
  border-color: var(--fd-button-gold-hover) !important;
}

/* Secondary CTA hover/focus retains the established Compare Products treatment. */
html body :is(
  .cta,
  .site-final-cta,
  .image-cta,
  .faq-cta,
  .maintenance-cta,
  .confidence-section,
  .hero .actions,
  .page-hero .actions
) :is(.btn-outline, .btn-secondary):is(:hover, :focus-visible) {
  background: var(--fd-button-gold) !important;
  background-image: none !important;
  border-color: var(--fd-button-gold) !important;
  color: var(--fd-button-light) !important;
  -webkit-text-fill-color: var(--fd-button-light) !important;
}

html body :is(
  .cta,
  .site-final-cta,
  .image-cta,
  .faq-cta,
  .maintenance-cta,
  .confidence-section,
  .hero .actions,
  .page-hero .actions
) :is(a.btn, button.btn):active {
  transform: translateY(0) !important;
}

html body :is(a.btn, button.btn, input.btn, main button[type="submit"], main input[type="submit"]):focus-visible {
  outline: 3px solid rgba(252, 188, 77, .38) !important;
  outline-offset: 3px !important;
}

/* Avoid legacy pseudo arrows/symbols changing button widths from page to page. */
html body :is(a.btn, button.btn, input.btn)::after {
  content: none !important;
}

/* About Us final CTA gap repair only. Button hover styling is now global above. */
html body:has(.about-hero) main > .site-final-cta {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Footer section headings: remove the legacy decorative diamond only.
   Footer link arrows and contact/social icons use separate selectors and remain unchanged. */
html body .footer.footer .footer-col > h3::before {
  content: none !important;
}

@media (max-width: 700px) {
  html body :is(.actions, .btn-group, .form-actions, .centred-actions) {
    align-items: stretch !important;
  }

  html body :is(.actions, .btn-group, .form-actions, .centred-actions) > :is(a.btn, button.btn, input.btn, button[type="submit"], input[type="submit"]) {
    width: 100% !important;
  }
}
