/*
Theme Name: Nosso Papel
Theme URI: https://agilstore.pt
Author: AgilStore
Author URI: https://agilstore.pt
Description: Tema institucional elegante convertido de React para WordPress. Focado em higiene, conforto e sustentabilidade.
Version: 1.0.0
Text Domain: nossopapel
*/

:root {
  /* Fonts */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", serif;

  /* Colors */
  --color-brand-orange: #E37D26;
  --color-brand-orange-light: rgba(227, 125, 38, 0.1);
  --color-brand-grey: #4B4B4B;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* Layout */
  --max-width: 80rem;
  /* 1280px */
}

@theme {
  --color-brand-orange: #E37D26;
  --color-brand-grey: #4B4B4B;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-slate-900);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-slate-900);
}

.font-serif {
  font-family: var(--font-serif) !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Utilities (Tailwind-like) --- */
.max-w-7xl {
  max-width: var(--max-width);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.gap-20 {
  gap: 5rem;
}

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

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-50 {
  z-index: 50;
}

.glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 1);
}

/* --- Spacing Utilities --- */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-20 {
  margin-top: 5rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-20 {
  padding-top: 5rem;
}

/* --- Typography & Colors --- */
.text-brand-orange {
  color: var(--color-brand-orange);
}

.bg-brand-orange {
  background-color: var(--color-brand-orange);
}

.bg-brand-orange\/5 {
  background-color: rgba(227, 125, 38, 0.05);
}

.bg-brand-orange\/10 {
  background-color: rgba(227, 125, 38, 0.1);
}

.text-brand-grey {
  color: var(--color-brand-grey);
}

.text-white {
  color: #ffffff;
}

.text-slate-400 {
  color: var(--color-slate-400);
}

.text-slate-500 {
  color: var(--color-slate-500);
}

.text-slate-600 {
  color: var(--color-slate-600);
}

.text-slate-900 {
  color: var(--color-slate-900);
}

.text-\[10px\] {
  font-size: 10px;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.text-7xl {
  font-size: 4.5rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-\[1\.1\] {
  line-height: 1.1;
}

/* --- Components & Transitions --- */
.w-full {
  width: 100%;
}

.h-20 {
  height: 5rem;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-4\/5 {
  aspect-ratio: 4 / 5;
}

.rounded-sm {
  border-radius: 0.125rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-brand-orange\/20:hover {
  box-shadow: 0 10px 15px -3px rgba(227, 125, 38, 0.2);
}

.border {
  border: 1px solid var(--color-slate-200);
}

.border-slate-100 {
  border-color: var(--color-slate-100);
}

.border-slate-700 {
  border-color: var(--color-slate-700);
}

.border-slate-800 {
  border-color: var(--color-slate-800);
}

.border-b {
  border-bottom: 1px solid var(--color-slate-100);
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

/* --- Section Padding --- */
.section-padding {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 5rem 6rem;
  }
}

/* Custom Styles for conversion */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-600);
}

.nav-link:hover {
  color: var(--color-brand-orange);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.btn-primary {
  background-color: var(--color-brand-orange);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 2px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(227, 125, 38, 0.3);
  transition: opacity 0.3s;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

#mobile-menu {
  transition: all 0.3s ease-in-out;
  transform-origin: top;
}

#mobile-menu.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Grid specific to components */
.features-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.products-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
.anima-show {
  /* Idle State */
  transform-origin: center;
  transform: perspective(1000px) translate3d(0px, 0px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform-origin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pm-show {
  from {
    transform-origin: center;
    transform: perspective(1000px) translate3d(0px, 80px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    opacity: 0;
  }

  to {
    transform-origin: center;
    transform: perspective(1000px) translate3d(0px, 0px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    opacity: 1;
  }
}

.anima-show.is-show {
  animation: pm-show 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}