/* Custom styles for use with Tailwind CDN */

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  background-color: rgba(17, 17, 19, 1);
}

h1, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
}

h2 {
  font-family: "Josefin Sans", Sans-serif;
  text-transform: none;
  font-weight: 100;
}

/* Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.4s ease;
  background-color: rgba(17, 17, 19, 1);
}

header.header-hidden {
  transform: translateY(-100%);
}

/* Navigation styles */
.navbar {
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  background-color: rgba(17, 17, 19, 1);
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: rgba(17, 17, 19, 1);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #333;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary-color);
}

.mobile-nav-link:hover {
  text-decoration: underline;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  color: white;
  border-radius: 0.375rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: rgba(var(--primary-color-rgb), 0.9);
}

.btn-secondary {
  background-color: #1a1a1a;
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(26, 26, 26, 0.9);
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Container styles */
.container-limited {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Text shadow */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Main content */
main {
  padding-top: 160px; /* Space for fixed header */
}

/* Content sections */
section:not(:first-child) {
  position: relative;
  z-index: 10;
  background-color: rgba(17, 17, 19, 1);
  color: #ffffff;
}

section.bg-gray-100 {
  background-color: rgba(17, 17, 19, 1);
  color: #ffffff;
}

section.bg-white {
  background-color: rgba(17, 17, 19, 1);
  color: #ffffff;
}

/* Form elements */
input, textarea, select {
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

/* Footer */
footer {
  background-color: rgba(17, 17, 19, 1);
  color: white;
  position: relative;
  z-index: 10;
}

footer a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary-color);
}

/* Custom padding adjustment */
.py-4 {
  padding-top: 1rem;
  padding-bottom: 2em !important;
}

/* Header-specific padding adjustment */
header .py-4 {
  padding-top: 0rem;
  padding-bottom: 2em !important;
}

/* Adjust navbar padding and font size for Spanish language */
html[lang="es"] .nav-link {
  padding-left: 0.3375rem !important;
  padding-right: 0.3375rem !important;
  font-size: 0.85rem !important; /* 10% larger than original 0.9rem */
}

/* Ensure active page is properly colored in Spanish */
html[lang="es"] .nav-link.active {
  color: var(--primary-color) !important;
}

/* Additional specificity for Spanish active links */
html[lang="es"] header .navbar .nav-link.active,
html[lang="es"] header .navbar nav .nav-link.active,
html[lang="es"] #mobileMenu .mobile-nav-link.active {
  color: var(--primary-color) !important;
}
