/* Custom styles extending Bootstrap 5.3 */

:root {
  --brand-orange: #f4623a;
  --brand-orange-hover: #e04f27;
  --brand-orange-light: rgba(244, 98, 58, 0.12);
  --brand-yellow: #f1c40f;
  --font-heading: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-bs-theme="light"],
:root:not([data-bs-theme="dark"]) {
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  --bs-light-bg-subtle: #f8f9fa;
  --bs-secondary-bg: #f1f3f5;
  --bs-secondary-bg-rgb: 241, 243, 245;
  --bs-tertiary-bg: #f8f9fa;
  --bs-tertiary-bg-rgb: 248, 249, 250;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #f1f3f5;
}

/* Restore light mode section and component backgrounds to original #f8f9fa / #f1f3f5 */
[data-bs-theme="light"] .bg-body-secondary,
:root:not([data-bs-theme="dark"]) .bg-body-secondary {
  background-color: #f1f3f5 !important;
}

[data-bs-theme="light"] .bg-body-tertiary,
[data-bs-theme="light"] .bg-light,
[data-bs-theme="light"] .bg-light-subtle,
:root:not([data-bs-theme="dark"]) .bg-body-tertiary,
:root:not([data-bs-theme="dark"]) .bg-light,
:root:not([data-bs-theme="dark"]) .bg-light-subtle {
  background-color: #f8f9fa !important;
}

body {
  font-family: var(--font-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Custom Brand Buttons */
.btn-brand {
  background-color: var(--brand-orange);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(244, 98, 58, 0.25);
}

/* Custom Checkbox (Tilde / Checkmark) Styling */
.form-check-input {
  accent-color: var(--brand-orange);
}

.form-check-input:checked {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
}

.form-check-input:focus {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 0.25rem rgba(244, 98, 58, 0.25) !important;
}

.btn-brand:hover, .btn-brand:focus {
  background-color: var(--brand-orange-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 98, 58, 0.35);
}

.btn-outline-brand {
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-outline-brand:hover, .btn-outline-brand:focus {
  background-color: var(--brand-orange);
  color: #ffffff;
}

/* Brand Text & Badge Highlights */
.text-brand {
  color: var(--brand-orange) !important;
}

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

.badge-brand {
  background-color: var(--brand-orange-light);
  color: var(--brand-orange);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
}

/* Navbar Custom Styles */
.navbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-bs-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .navbar {
  background-color: rgba(18, 18, 22, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-orange) !important;
}

/* Card Enhancements */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--brand-orange) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .card-hover:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4) !important;
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
  color: var(--brand-orange);
  background-color: var(--brand-orange-light);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.accordion-button:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 0.25rem rgba(244, 98, 58, 0.25);
}

/* Step Circle Badge */
.step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Skill Icon Box */
.skill-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--brand-orange-light);
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

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

/* Cookie consent */
.cookie-consent {
  position: fixed;
  z-index: 1090;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: rgba(var(--bs-body-bg-rgb), 0.98);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent__copy {
  max-width: 720px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cookie-preferences-button {
  position: fixed;
  z-index: 1040;
  right: 1rem;
  bottom: 5rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-orange);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  font-size: 1.25rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 1040;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
  font-size: 1.75rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-button:hover,
.cookie-preferences-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 767.98px) {
  .cookie-consent__content {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
