/* ==========================================================================
   M&M Group - Estilos Oficiais Ultraleves (Astro + Cloudflare Workers)
   ========================================================================== */

:root {
  --primary: #253e64;
  --primary-dark: #1b2d49;
  --accent: #0170b9;
  --accent-hover: #005a96;
  --text: #4b4f58;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --container: 1240px;
  --font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 9999;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  left: 10px;
}

/* Layout Container */
.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

/* Form Styles */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* Honeypot Anti-spam */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

/* Astra Theme Alignment for Interior Pages */
.ast-article-single .entry-header {
  margin-top: 149px !important;
  margin-bottom: 24px;
}

@media (max-width: 921px) {
  .ast-article-single .entry-header {
    margin-top: 81px !important;
  }
}

/* WooCommerce Products Header Spacing */
.ast-woocommerce-container {
  margin-top: 30px !important;
  max-width: 1200px !important;
}

.woocommerce-products-header {
  margin-top: 71px !important;
  margin-bottom: 24px;
}

@media (max-width: 921px) {
  .ast-woocommerce-container {
    margin-top: 30px !important;
  }

  .woocommerce-products-header {
    margin-top: 38px !important;
  }
}
