/*
Theme Name: Plastmiq
Theme URI: https://plastmiq.com.br
Author: Plastmiq
Author URI: https://plastmiq.com.br
Description: Tema WordPress da Plastmiq — Embalagens plásticas de alta performance. Convertido a partir do projeto React/Vite original, mantendo identidade visual (verde institucional, tipografia Montserrat + Inter).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plastmiq
Tags: business, e-commerce, industrial, green, responsive
*/

/* =========================================================
   Design tokens (mesmo sistema do projeto React)
   ========================================================= */
:root {
  --background: #ffffff;
  --foreground: #0d2640;
  --muted: #f1f6f3;
  --muted-foreground: #5e7466;
  --border: #dbe7df;
  --card: #ffffff;

  --primary: hsl(150, 100%, 20%);          /* #006633-ish */
  --primary-foreground: #ffffff;
  --secondary: hsl(150, 100%, 30%);        /* #009A4D */
  --secondary-foreground: #ffffff;

  --radius: 0.5rem;
  --gradient-navy: linear-gradient(135deg, hsl(150 100% 20%), hsl(150 100% 30%));
  --shadow-card: 0 0 30px -5px hsla(150, 100%, 30%, 0.15);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.08);

  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================================
   Reset básico
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 .5em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219,231,223,.6);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-header__logo img { height: 64px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .2s;
}
.site-nav a:hover { color: var(--primary); }
.btn-catalog {
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  background: var(--gradient-navy);
  color: var(--primary-foreground);
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .2s;
}
.btn-catalog:hover { opacity: .9; }

.menu-toggle { display: none; padding: .5rem; color: var(--foreground); }
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  .site-nav.is-open ul { flex-direction: column; gap: .25rem; }
  .menu-toggle { display: inline-flex; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: hsl(150, 100%, 18%); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-gradient { background: var(--gradient-navy); color: var(--primary-foreground); }
.btn-gradient:hover { opacity: .9; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 70vh;
  padding: 3.5rem 0;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: .375rem 1rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.1;
  margin: 1.5rem 0;
}
.hero__lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 3.5rem 0; }
.section--muted { background: rgba(241, 246, 243, .5); }
.section__head { text-align: center; max-width: 48rem; margin: 0 auto 2.5rem; }
.section__head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.section__head p { color: var(--muted-foreground); font-size: 1.125rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
  width: 3rem; height: 3rem;
  border-radius: .5rem;
  background: var(--gradient-navy);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 { color: var(--foreground); font-size: 1.25rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted-foreground); font-size: .875rem; margin: 0; }

/* =========================================================
   Product showcase
   ========================================================= */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .product-card { grid-template-columns: 1fr; } }
.product-card__media {
  background: rgba(241, 246, 243, .4);
  padding: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.product-card__media .frame {
  border: 3px solid var(--secondary);
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
}
.product-card__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.product-card__body { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.product-card__badge {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--secondary);
  font-weight: 600;
}
.product-card__title { color: var(--foreground); font-size: 1.75rem; margin: .25rem 0 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  padding: .375rem .875rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--gradient-navy);
  color: var(--primary-foreground);
  padding: 4rem 0 1.5rem;
}
.site-footer .container { display: grid; gap: 3rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.125rem; margin-bottom: 1rem; }
.site-footer a { opacity: .85; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .75rem;
  opacity: .65;
}

/* =========================================================
   Content (page/single/index)
   ========================================================= */
.entry { padding: 8rem 0 4rem; }
.entry__header { text-align: center; margin-bottom: 3rem; }
.entry__title { font-size: clamp(2rem, 4vw, 3rem); }
.entry__meta { color: var(--muted-foreground); font-size: .875rem; }
.entry__content { max-width: 48rem; margin: 0 auto; font-size: 1.0625rem; }
.entry__content p { margin: 0 0 1.25rem; }
.entry__content img { border-radius: .75rem; margin: 1.5rem 0; }
.entry__content a { color: var(--secondary); text-decoration: underline; }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__thumb { aspect-ratio: 16/10; background: var(--muted); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem; }
.post-card__body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.post-card__body p { color: var(--muted-foreground); font-size: .9375rem; margin: 0; }

/* =========================================================
   Utilities
   ========================================================= */
.text-gradient {
  background: var(--gradient-navy);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
