/* ==========================================================================
   Riveros & Co. — Corporate Theme Override (Plum Heritage & Tech Accents)
   ========================================================================== */

:root {
  /* Remap legacy variables to Riveros & Co. brand tokens */
  --primary-color: #00D09C;
  --secondary-color: #F4EFF8;
  --accent-color: #00D09C;
  --dark-color: #12011A;
  --light-color: #12011A;
  --gray-color: #A99BB8;
  --light-gray-color: #2D053E;
  --text-color: #D3C6DE;
  --white-color: #FFFFFF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Arial, sans-serif;
  background-color: #12011A;
  color: #D3C6DE;
}

/* Navbar */
header, .navbar {
  background: rgba(35, 4, 46, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  color: #D3C6DE !important;
  font-weight: 600;
}

.nav-link:hover, .nav-link.active {
  color: #00D09C !important;
}

.nav-toggle span {
  background-color: #F4EFF8 !important;
}

/* Brand Pill Logo */
.brand-pill-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #12011A;
  border: 1px solid rgba(0, 208, 156, 0.35);
  border-radius: 9999px;
  padding: 6px 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.brand-pill-logo:hover {
  border-color: #00D09C;
  box-shadow: 0 0 14px rgba(0, 208, 156, 0.25);
}

.brand-name-main {
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.brand-name-accent {
  font-weight: 800;
  color: #00D09C;
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #12011A 0%, #250433 45%, #15011E 100%) !important;
  position: relative;
  overflow: hidden;
}

.hero .signature-name {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
  color: #FFFFFF !important;
}

.hero .profession-title {
  color: #00D09C !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sections */
section {
  background-color: #12011A !important;
}

section.consulting, section.skills, section.about {
  background-color: #15011E !important;
}

.section-header h2 {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, Arial, sans-serif;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: -0.2px;
}

.section-header p {
  color: #A99BB8 !important;
}

.underline {
  background: linear-gradient(90deg, #00D09C, #9D4EDD) !important;
}

/* Cards */
.project-card, .skill-category, .contact-info, .contact-form, .blog-card {
  background: #1F062E !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #D3C6DE !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.project-card:hover, .skill-category:hover {
  transform: translateY(-6px);
  border-color: #00D09C !important;
  box-shadow: 0 14px 36px rgba(0, 208, 156, 0.18) !important;
}

.project-card h3, .skill-category h3, .about-text h3, .blog-card h2 {
  color: #FFFFFF !important;
}

.project-card p, .about-text p, .blog-card p {
  color: #D3C6DE !important;
}

.project-tag, .tech-tag {
  background: rgba(0, 208, 156, 0.12) !important;
  color: #00D09C !important;
  border: 1px solid rgba(0, 208, 156, 0.25);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00D09C 0%, #009E76 100%) !important;
  color: #12011A !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 208, 156, 0.35) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 156, 0.5) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #00D09C !important;
}

/* Forms & Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px !important;
}

.contact-info-intro {
  text-align: justify;
  line-height: 1.65;
  margin-bottom: 20px;
}

.availability-box {
  background: rgba(18, 1, 26, 0.72);
  border: 1px solid rgba(0, 208, 156, 0.28);
  border-left: 3px solid #00D09C;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
}

.availability-box h4 {
  color: #00D09C;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.availability-box p {
  font-size: 0.9rem;
  color: #D3C6DE;
  line-height: 1.5;
  margin: 0;
}

.contact-form {
  text-align: left !important;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 6px;
}

.form-group {
  text-align: left !important;
}

.form-group label {
  display: block;
  text-align: left !important;
  color: #F4EFF8 !important;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100% !important;
  text-align: left !important;
  background: #12011A !important;
  border: 1px solid #4A1061 !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  padding: 12px 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #00D09C !important;
  box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.2) !important;
  outline: none;
}

/* Hero Credentials Bar */
.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: 2rem;
  padding: 10px 20px;
  background: rgba(31, 5, 43, 0.65);
  border: 1px solid rgba(0, 208, 156, 0.25);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #D3C6DE;
  backdrop-filter: blur(8px);
}

.hero-credentials span.dot {
  color: #00D09C;
}

/* Case Study Section (Glassmorphism) */
.case-study-box {
  background: rgba(31, 5, 43, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 208, 156, 0.45);
  border-left: 5px solid #00D09C;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-box:hover {
  box-shadow: 0 20px 50px rgba(0, 208, 156, 0.16);
}

.case-study-badge {
  display: inline-block;
  background: rgba(0, 208, 156, 0.14);
  color: #00D09C;
  border: 1px solid rgba(0, 208, 156, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.kpi-card {
  background: rgba(18, 1, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: #00D09C;
  box-shadow: 0 8px 24px rgba(0, 208, 156, 0.18);
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 900;
  color: #00D09C;
  line-height: 1.15;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 0.92rem;
  color: #D3C6DE;
  line-height: 1.45;
}

/* Consulting Level Badges */
.consulting-level-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: rgba(0, 208, 156, 0.12);
  color: #00D09C;
  border: 1px solid rgba(0, 208, 156, 0.3);
}

/* Experimental R&D Collapsible */
.rd-experimental {
  margin-top: 44px;
  background: rgba(31, 5, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
}

.rd-experimental summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  color: #F4EFF8;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rd-experimental summary::-webkit-details-marker {
  display: none;
}

.rd-experimental summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #00D09C;
  font-weight: 800;
}

.rd-experimental[open] summary::after {
  content: '−';
}

.rd-experimental[open] .projects-grid {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .case-study-box {
    padding: 24px 18px;
  }
  .hero-credentials {
    border-radius: 14px;
    font-size: 0.82rem;
  }
}

/* Footer */
.footer {
  background: #15011E !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #A99BB8 !important;
}

.signature-img-dark {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
  filter: invert(1) contrast(170%) brightness(1.2);
  mix-blend-mode: screen;
  pointer-events: none;
}
