/*
 * Portico React Landing Page Styles
 * MINIMAL - Only essential custom styles (Tailwind CDN handles all utilities)
 */

/* Prevent horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* CSS Variables for brand colors (matching React app) */
:root {
  --brand-accent: #b89e6a;
  --brand-dark: #1a1a2e;
  --brand-light-dark: #2c2c4d;
  --brand-light: #e8e6f0;
  --brand-muted: #a8a6b8;
}

/* Custom glass effect for cards */
.glass-effect {
  background: rgba(44, 44, 77, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 158, 106, 0.2);
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a08c58;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Background gradient and pattern utilities */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-brand-dark {
  --tw-gradient-from: var(--brand-dark);
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(26, 26, 46, 0));
}

.to-brand-light-dark {
  --tw-gradient-to: var(--brand-light-dark);
}

.bg-grid-pattern {
  background-image: linear-gradient(
      rgba(184, 158, 106, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(184, 158, 106, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Skip link for accessibility */
.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;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Mobile navigation improvements */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
  height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  height: auto;
  opacity: 1;
}

/* Ensure mobile menu works properly on small screens */
@media (max-width: 768px) {
  .md\:hidden {
    display: block;
    /* Prevent scrollbar displacement */
    transform: none;
    left: auto;
  }

  .hidden\:md {
    display: none;
  }

  /* Mobile navigation menu positioning */
  .mobile-nav {
    top: 5rem;
    right: 1rem;
    width: 250px;
    max-width: calc(100vw - 2rem);
    z-index: 9998;
  }
}

/* Contact form improvements */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 2px rgba(184, 158, 106, 0.2) !important;
}

.contact-form button:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.contact-form .loading {
  position: relative;
  color: transparent !important;
}

.contact-form .loading::after {
  content: "Enviando...";
  color: var(--brand-dark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Animation for contact messages */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-message {
  animation: slideInDown 0.3s ease-out;
}

/* Form highlight effect after submission */
.glass-effect {
  transition: box-shadow 0.3s ease-out;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* That's it! Everything else comes from Tailwind CDN */
