/* ==========================================================================
   MasterFix — Core Design System & Base Styles
   Brand Identity: Yellow #FFB511 | Deep Black #0A0A0A | Clean Whites & Grays
   ========================================================================== */

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

:root {
  /* Brand Color Tokens */
  --mf-yellow: #FFB511;
  --mf-yellow-hover: #E6A008;
  --mf-yellow-active: #CC8C00;
  --mf-yellow-light: #FFF8E7;
  --mf-yellow-glow: rgba(255, 181, 17, 0.35);

  --mf-black: #0A0A0A;
  --mf-dark-900: #121212;
  --mf-dark-800: #1C1C1E;
  --mf-dark-700: #2C2C2E;
  --mf-dark-600: #3A3A3C;

  --mf-white: #FFFFFF;
  --mf-bg-light: #F7F7F7;
  --mf-bg-card: #FFFFFF;
  --mf-bg-muted: #EFEFEF;

  --mf-text-main: #111827;
  --mf-text-muted: #666666;
  --mf-text-light: #8E8E93;
  --mf-text-inverse: #FFFFFF;

  --mf-border: #E5E7EB;
  --mf-border-dark: #2A2A2E;
  --mf-border-focus: #FFB511;

  --mf-whatsapp: #25D366;
  --mf-whatsapp-hover: #20BD5A;
  --mf-whatsapp-dark: #128C7E;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
}

/* CSS Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--mf-text-main);
  background-color: var(--mf-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--mf-yellow);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--mf-black);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--mf-text-muted);
  font-size: 1rem;
}

.text-muted {
  color: var(--mf-text-muted);
}

.text-yellow {
  color: var(--mf-yellow);
}

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

/* Section Shells */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--mf-black);
  color: var(--mf-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--mf-text-inverse);
}

.section-dark p {
  color: #A1A1AA;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mf-black);
  background: var(--mf-yellow);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--mf-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mf-border);
  height: var(--header-height);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--mf-black);
  letter-spacing: -0.02em;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mf-text-muted);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--mf-black);
}

.nav-link.active {
  color: var(--mf-black);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--mf-yellow);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--mf-black);
  background: transparent;
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--mf-bg-muted);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--mf-black);
  transition: all var(--transition-normal);
  margin: 2.5px 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  background-color: var(--mf-white);
  padding: 2rem 1.5rem;
  border-bottom: 2px solid var(--mf-yellow);
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px);
  transition: transform var(--transition-normal);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mf-black);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-link.active {
  color: var(--mf-black);
  border-bottom-color: var(--mf-yellow);
}

.mobile-nav-link.active::after {
  content: '•';
  color: var(--mf-yellow);
  font-size: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--mf-black);
  color: #A1A1AA;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 3px solid var(--mf-yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-col-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-description {
  font-size: 0.9375rem;
  color: #9CA3AF;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mf-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--mf-yellow);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9375rem;
  color: #9CA3AF;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--mf-yellow);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9375rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #9CA3AF;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--mf-yellow);
}

.footer-contact-item a {
  color: #9CA3AF;
}

.footer-contact-item a:hover {
  color: var(--mf-yellow);
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--mf-dark-800);
  color: var(--mf-white);
  border: 1px solid var(--mf-border-dark);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--mf-yellow);
  color: var(--mf-black);
  border-color: var(--mf-yellow);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--mf-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #71717A;
}

.footer-bottom a {
  color: #71717A;
}

.footer-bottom a:hover {
  color: var(--mf-yellow);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mf-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--mf-text-muted);
}

.breadcrumb a:hover {
  color: var(--mf-black);
}

.breadcrumb-separator {
  color: var(--mf-text-light);
}

.breadcrumb-current {
  color: var(--mf-black);
  font-weight: 600;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
