/* ==========================================================================
   Tailwind / Custom Design Tokens & Styles - MT Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-dark: #25282a;
  --color-yellow: #fdd302;
  --color-yellow-hover: #e5be02;
  --color-cream: #fff6d8;
  --color-white: #ffffff;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-dark);
  color: var(--color-cream);
  overflow-x: hidden;
}

.font-display {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
}

.font-sans {
  font-family: 'Inter', sans-serif;
}

/* Background utilities */
.bg-dark { background-color: var(--color-dark); }
.bg-yellow { background-color: var(--color-yellow); }
.bg-yellow-hover { background-color: var(--color-yellow-hover); }
.bg-cream { background-color: var(--color-cream); }
.bg-white { background-color: #ffffff; }

/* Text color utilities */
.text-dark { color: var(--color-dark); }
.text-yellow { color: var(--color-yellow); }
.text-yellow-hover { color: var(--color-yellow-hover); }
.text-cream { color: var(--color-cream); }
.text-cream\/80 { color: rgba(255, 246, 216, 0.8); }
.text-cream\/70 { color: rgba(255, 246, 216, 0.7); }
.text-cream\/60 { color: rgba(255, 246, 216, 0.6); }
.text-cream\/50 { color: rgba(255, 246, 216, 0.5); }
.text-cream\/30 { color: rgba(255, 246, 216, 0.3); }

.text-dark\/85 { color: rgba(37, 40, 42, 0.85); }
.text-dark\/80 { color: rgba(37, 40, 42, 0.8); }
.text-dark\/70 { color: rgba(37, 40, 42, 0.7); }
.text-dark\/60 { color: rgba(37, 40, 42, 0.6); }
.text-dark\/50 { color: rgba(37, 40, 42, 0.5); }
.text-dark\/40 { color: rgba(37, 40, 42, 0.4); }

.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-dark\/10 { border-color: rgba(37, 40, 42, 0.1); }
.border-dark\/15 { border-color: rgba(37, 40, 42, 0.15); }
.border-dark\/20 { border-color: rgba(37, 40, 42, 0.2); }

/* Layout & Grid Helpers */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xs {
  max-width: 20rem;
}

/* Flexbox & Grids */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }

.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; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:text-6xl { font-size: 3.75rem; }
  .sm\:text-7xl { font-size: 4.5rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:gap-4 { gap: 1rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:text-sm { font-size: 0.875rem; }
  .md\:p-10 { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:text-9xl { font-size: 7.5rem; }
  .lg\:text-8xl { font-size: 6rem; }
  .lg\:block { display: block; }
}

/* Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-28 { padding-top: 7rem; }
.pb-16 { padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.pl-4 { padding-left: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.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-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.ml-1 { margin-left: 0.25rem; }
.pr-4 { padding-right: 1rem; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-20 { height: 5rem; }
.h-9 { height: 2.25rem; }
.h-72 { height: 18rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.min-h-screen { min-height: 100vh; }
.aspect-\[9\/16\] { aspect-ratio: 9 / 16; }

/* Position & z-index */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.top-4 { top: 1rem; }
.left-4 { left: 1rem; }
.-top-40 { top: -10rem; }
.-right-40 { right: -10rem; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }

/* Borders & Dividers */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-yellow { border-color: var(--color-yellow); }
.rounded-full { border-radius: 9999px; }

.divide-y > * + * {
  border-top-width: 1px;
  border-top-style: solid;
}
.divide-white\/10 > * + * { border-color: rgba(255, 255, 255, 0.1); }
.divide-dark\/20 > * + * { border-color: rgba(37, 40, 42, 0.2); }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-\[11px\] { font-size: 11px; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.15; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\.92\] { line-height: 0.92; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Effects & transitions */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 250ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.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), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Object fit */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }

/* Form styles */
input, select, textarea {
  font-family: inherit;
  color: inherit;
}
input::placeholder, textarea::placeholder {
  color: rgba(255, 246, 216, 0.4);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-yellow) !important;
  outline: none;
}

/* Filter tab button active state */
.filter-btn.active {
  background-color: var(--color-dark) !important;
  color: var(--color-cream) !important;
}

/* Accordion open state */
.faq-item.active .faq-answer {
  display: block !important;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Button & Interactive Hover & Link states */
a, button {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}
a:visited {
  color: inherit;
}
button {
  background: none;
  border: none;
}

/* Base interactive utilities */
.hover\:underline:hover {
  text-decoration: underline;
}
.hover\:text-yellow:hover {
  color: var(--color-yellow) !important;
}
.hover\:text-yellow-hover:hover {
  color: var(--color-yellow-hover) !important;
}
.hover\:bg-yellow:hover {
  background-color: var(--color-yellow) !important;
}
.hover\:bg-yellow-hover:hover {
  background-color: var(--color-yellow-hover) !important;
}

/* Contrast & Link state overrides per section theme */
/* Dark sections (#hero, #servicos, #contato, header, footer) */
.bg-dark a:not([class*="bg-"]):not([class*="btn"]) {
  color: var(--color-cream);
}
.bg-dark a:not([class*="bg-"]):not([class*="btn"]):visited {
  color: var(--color-cream);
}
.bg-dark a:not([class*="bg-"]):not([class*="btn"]):hover {
  color: var(--color-yellow) !important;
}

/* Light / Cream sections (#galeria, #sobre) */
.bg-cream a:not([class*="bg-"]):not([class*="btn"]) {
  color: var(--color-dark);
}
.bg-cream a:not([class*="bg-"]):not([class*="btn"]):visited {
  color: var(--color-dark);
}
.bg-cream a:not([class*="bg-"]):not([class*="btn"]):hover {
  color: var(--color-dark);
  opacity: 0.75;
}

/* Yellow sections (#portfolio, FAQ) */
.bg-yellow a:not([class*="bg-"]):not([class*="btn"]) {
  color: var(--color-dark);
}
.bg-yellow a:not([class*="bg-"]):not([class*="btn"]):visited {
  color: var(--color-dark);
}
.bg-yellow a:not([class*="bg-"]):not([class*="btn"]):hover {
  color: var(--color-dark);
  opacity: 0.75;
}

/* Header Navigation Links */
header nav a:not([class*="bg-yellow"]) {
  color: #494c4e;
  transition: color 200ms ease;
}
header nav a:not([class*="bg-yellow"]):visited {
  color: #494c4e;
}
header nav a:not([class*="bg-yellow"]):hover {
  color: var(--color-yellow) !important;
}

/* Mobile Menu Links */
.mobile-link:not([class*="bg-yellow"]) {
  color: #494c4e;
}
.mobile-link:not([class*="bg-yellow"]):visited {
  color: #494c4e;
}
.mobile-link:not([class*="bg-yellow"]):hover {
  color: var(--color-yellow) !important;
}

/* Action buttons with bg-yellow */
a.bg-yellow, button.bg-yellow {
  color: var(--color-dark) !important;
}
a.bg-yellow:visited, button.bg-yellow:visited {
  color: var(--color-dark) !important;
}
a.bg-yellow:hover, button.bg-yellow:hover {
  background-color: var(--color-yellow-hover) !important;
  color: var(--color-dark) !important;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}
.hover\:-translate-y-2:hover {
  transform: translateY(-8px);
}
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}
.group:hover .group-hover\:text-yellow {
  color: var(--color-yellow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark);
}
::-webkit-scrollbar-thumb {
  background: #3f4448;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow);
}
