/* Critical CSS - Inline in <head> for above-the-fold rendering */
@import url("https://fonts.googleapis.com/css2?family=Stack+Sans+Notch:wght@200..700&family=Stack+Sans+Text:wght@200..700&display=swap");

/* CSS Variables */
:root {
  --theme-color: #d10b15;
  --theme-color-hover: #a10911;
  --primary: #d10b15;
  --primary-hover: #a10911;
  --accent: #a0522d;
  --secondary: #d2b48c;
  --dark: #222220; /* Charcoal black */
  --light: #cfcfcf; /* Light gray instead of beige */
  --success: #556b2f;
  --danger: #8b0000;
  --warning: #d2691e;
  --info: #a52a2a;

  --color-surface: #f8fafb;
  --color-surface-elevated: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --bg-theme: rgba(209, 11, 21, 0.9);

  --bg-color: #ffffff; /* Light gray for main bg in light mode */
  --text-color: #111111; /* High contrast WCAG AAA on light bg */
  --text-contrast: #222220; /* High contrast on dark bg */
  --border-color: #d2b48c;
  --card-bg: #f8f8f8;
  --header-bg: transparent; /* Transparent header */
  --header-scrolled-bg: #ffffff; /* White when scrolled in light */
  --footer-bg: #222220; /* Charcoal black for footer */
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.1);
  --section-bg-primary: #f0f0f0; /* Light gray */
  --section-bg-secondary: #f4f4f4; /* Theme red tint, adjusted for dark contrast */
  --section-bg-alt: rgba(209, 11, 21, 0.1); /* Light red tint */
  --section-bg-dark: #222220; /* Charcoal black */

  --spacing-xs: 0.75rem;
  --spacing-sm: 1.25rem;
  --spacing-md: 2rem;
  --spacing-lg: 3.5rem;
  --spacing-xl: 5rem;

  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;
  --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Transitions */
  --transition-duration: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --primary-color-rgb: 0, 0, 0;
}

[data-theme="dark"] {
  --alternative: #cd853f;
  --bg-color: #181818;
  --text-color: #ffffff; /* High contrast on dark bg */
  --text-contrast: #cfcfcf; /* High contrast on dark bg */
  --border-color: #d10b15;
  --card-bg: #1e1e1e;
  --header-bg: transparent; /* Transparent header in dark mode */
  --header-scrolled-bg: #222220; /* Dark when scrolled in dark mode */
  --footer-bg: #222220; /* Charcoal black for footer */
  --shadow: rgba(0, 0, 0, 0.5);
  --shadow-hover: rgba(0, 0, 0, 0.6);
  --secondary: #d0d0d0; /* Enhanced secondary for better readability */
  --section-bg-primary: #333330; /* Dark gray for coherence */
  --section-bg-secondary: #2c2b2b; /* Theme red tint, adjusted for dark contrast */
  --section-bg-alt: rgba(
    209,
    11,
    21,
    0.2
  ); /* Theme red tint, adjusted for dark contrast */
  --section-bg-dark: #222220; /* Charcoal black */

  --color-surface: #1e1e1e;
  --color-surface-elevated: #222220;
  --color-border: #181818;
  --color-border-light: #222220;
  --shadow-color: 0 0% 0%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Stack Sans Text", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color var(--transition),
    color var(--transition);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  font-family: "Stack Sans Notch", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  background-color: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Stack Sans Notch", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* Prevent FOUC */
.no-js {
  display: none;
}

.logo-dark {
  display: block;
}

.logo-light {
  display: none;
}

header.scrolled {
  .logo-light {
    display: block;
  }
  .logo-dark {
    display: none;
  }
}

[data-theme="dark"] {
  .logo-dark {
    display: block;
  }

  .logo-light {
    display: none;
    opacity: 0;
    pointer-events: none;

    /* Prevent FOUC */
    animation: fade-in 0.3s ease-out;
  }

  header.scrolled {
    .logo-light {
      display: none;
    }
    .logo-dark {
      display: block;
    }
  }
}
/* Header Styles for Origens BBQ */

/* .site-header {
  border-bottom: 1px solid var(--border-color);
}

.logo img {
  width: auto;
  height: 78px;
  filter: contrast(1.2); 
}

.main-nav a {
  font-weight: 400;
  color: var(--text-color);
}

.main-nav a:hover {
  color: var(--theme-color);
}

.main-nav .active {
  color: var(--primary);
  background-color: transparent;
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
}

@media (min-width: 768px) {
  .main-nav ul {
    gap: var(--spacing-lg);
  }
} */

.lang-list {
  display: flex;
  gap: 7px;
}

/* Footer Styles for Origens BBQ */

.site-footer {
  padding: var(--spacing-md) 0 0 !important;
  font-size: 0.9375rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--secondary);
  display: block;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: var(--theme-color);
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
}

.footer-bottom a {
  color: var(--secondary);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-social a {
  font-size: 1.25rem;
  color: var(--secondary);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--theme-color);
}

@media (max-width: 991px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

.grecaptcha-badge {
  visibility: hidden;
}
