/* Custom enhancements for Rubius site */

/* Global font switch to a clean sans-serif */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
}

html, body, input, select, textarea, button {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Ensure common text elements and nav/CTA use the sans font */
a, p, li, label, small, dt, dd, nav, #menu a, .button, .cta, .cta * {
  font-family: var(--font-sans) !important;
}

/* Theme removed */

/* Buttons tweaks */
.button.small {
  font-size: 0.9em;
  padding: 0.45em 0.9em;
}

/* Back to top */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
  opacity: 0.9;
}

#backToTop.show {
  display: inline-block;
}

/* Theme toggle removed */

/* Sidebar link contrast tweak */
#sidebar #menu a {
  color: #2a3542;
  font-weight: 600;
}

#sidebar #menu a:hover {
  color: #0066cc;
}

/* Floating contact buttons (mobile) */
.floating-btn {
  position: fixed;
  bottom: 20px;
  z-index: 1000;
  display: none;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  font-weight: 700;
}

.floating-whatsapp {
  right: 20px;
  background: #25D366;
  color: #fff !important;
}

.floating-call {
  left: 20px;
  background: #0ea5e9;
  color: #fff !important;
}

/* Fix hover/focus opacity for floating buttons */
.floating-btn:hover,
.floating-btn:focus {
  opacity: 1 !important;
  filter: none !important;
  text-decoration: none;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
  background: #1ebe57;
  color: #fff !important;
}

.floating-call:hover,
.floating-call:focus {
  background: #0284c7;
  color: #fff !important;
}

.floating-btn .icon { margin-right: 6px; }

@media (max-width: 768px) {
  .floating-btn { display: inline-flex; align-items: center; }
}

/* Hero CTA buttons: stack on mobile */
@media (max-width: 768px) {
  #banner .actions {
    display: flex;
    flex-direction: column;
  }
  #banner .actions li {
    width: 100%;
    margin: 0 0 0.75em 0;
  }
  #banner .actions li .button {
    width: 100%;
  }
}

/* Inputs/forms */
form .row.gap {
  row-gap: 0.75rem;
}

.form-success {
  background: #e6ffed;
  border-left: 4px solid #22c55e;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  color: #065f46;
  display: none;
}

.form-error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  color: #7f1d1d;
  display: none;
}

/* Active menu link */
#menu a.active {
  font-weight: 700;
  text-decoration: underline;
}

/* CTA section (Consultation form) */
.cta {
  background: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: 0;
  border: none;
  box-shadow: none;
  border-top: none !important;
  margin: 3rem 0 0;
}
.cta header.major { margin: 0 0 1.25rem 0; border-bottom: none !important; padding-bottom: 0 !important; }
.cta header.major:after { display: none !important; }
.cta header.major h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 0.25rem 0;
  letter-spacing: normal;
  font-weight: 700;
}
.cta header.major p {
  margin: 0;
  color: #6b7280;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1rem;
}
.cta form .row.gap { row-gap: 1rem; }
.cta .actions { margin-top: 0.75rem; display: flex; justify-content: center; }
.cta .actions li { margin: 0; }
.cta .button.primary { padding: 0.95rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; }

/* CTA inputs aesthetics */
.cta input[type="text"],
.cta input[type="email"],
.cta input[type="tel"],
.cta textarea {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.cta input::placeholder,
.cta textarea::placeholder {
  color: #9ca3af;
}

.cta input:focus,
.cta textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.cta label { font-weight: 600; color: #374151; }

@media (max-width: 736px) {
  .cta { padding: 1.5rem 1.25rem; border-radius: 10px; }
  .cta header.major h2 { font-size: 1.5rem; }
}
