/* ========================================
   RIVOX Official Website
   Premium, Trustworthy, International
   ======================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-navy: #0B1B2B;
  --color-navy-light: #152838;
  --color-navy-deep: #061018;
  --color-gold: #BFA06A;
  --color-gold-light: #D4B886;
  --color-gold-dark: #9C7E48;
  --color-cream: #FAF8F5;
  --color-cream-dark: #F2EEE8;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #6B6B6B;
  --color-text-muted: #9B9B9B;
  --color-border: #E5E0D8;
  --color-border-dark: #2A3A4A;

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);

  --shadow-sm: 0 2px 12px rgba(11, 27, 43, 0.06);
  --shadow-md: 0 8px 32px rgba(11, 27, 43, 0.10);
  --shadow-lg: 0 20px 60px rgba(11, 27, 43, 0.15);

  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1280px;
  --section-padding: 100px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn-outline-dark:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  transform: translateY(-2px);
}

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

.btn-navy:hover {
  background: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn-gold:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-large {
  padding: 18px 52px;
  font-size: 15px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 24px 0;
}

.navbar.scrolled {
  background: rgba(11, 27, 43, 0.96);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 4px;
  line-height: 1;
}

.nav-logo-text span {
  color: var(--color-gold);
}

.nav-logo:hover .nav-logo-text {
  color: var(--color-gold-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-menu a:hover {
  color: var(--color-gold);
}

.nav-cta {
  padding: 10px 28px;
  background: var(--color-gold);
  color: var(--color-navy) !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--color-gold-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-navy-deep);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right 0.5s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 16px;
  }

  .nav-logo-text {
    font-size: 28px;
  }
}

/* ===== Section Base ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 0.62;
  z-index: 1;
}

.section-dark > .container {
  position: relative;
  z-index: 2;
}

.section-cream {
  background: var(--color-cream);
}

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

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: inline-block;
}

.section-title {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-navy);
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 60px;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: #050a0f;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 1;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 10, 15, 0.25) 0%, rgba(5, 10, 15, 0) 40%, rgba(5, 10, 15, 0.45) 100%);
  z-index: 2;
}

.hero-image {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 120px 0 80px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-left {
  display: none;
}

.hero-right,
.hero-center {
  color: var(--color-white);
  max-width: 100%;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(191, 160, 106, 0.15);
  border: 1px solid rgba(191, 160, 106, 0.3);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--color-white);
}

.hero-title .gold {
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 40px;
  max-width: 760px;
}

.hero-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: 36px;
  border-left: 2px solid var(--color-gold);
  padding-left: 20px;
  text-align: left;
}

.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}

.hero-service-card {
  display: block;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.hero-service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 160, 106, 0.35);
  transform: translateY(-4px);
}

.hero-service-number {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.hero-service-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-white);
}

.hero-service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.hero-summary {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 820px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 44px;
    margin-bottom: 36px;
  }
  .hero-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-service-card {
    padding: 26px 22px;
  }
  .hero-service-title {
    font-size: 22px;
  }
  .hero-summary {
    font-size: 17px;
  }
}

/* ===== China Opportunity ===== */
.opportunity {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.opportunity-text .section-title {
  font-size: 52px;
}

.opportunity-text p {
  font-size: 17px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.opportunity-visual {
  position: relative;
}

.service-module-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-module-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-module-btn:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-module-btn:hover .service-module-arrow {
  color: var(--color-gold);
  transform: translateX(4px);
}

.service-module-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 160, 106, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
}

.service-module-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-gold-dark);
}

.service-module-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.service-module-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.service-module-desc {
  font-size: 14px;
  color: var(--color-text-light);
}

.service-module-arrow {
  font-size: 22px;
  color: var(--color-text-lightest);
  transition: var(--transition);
}

@media (max-width: 900px) {
  .opportunity-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .opportunity-visual {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .service-module-btn {
    padding: 18px 20px;
    gap: 14px;
  }
  .service-module-icon {
    width: 44px;
    height: 44px;
  }
  .service-module-name {
    font-size: 20px;
  }
  .service-module-desc {
    font-size: 13px;
  }
}

/* ===== What We Do ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-cream-dark);
  line-height: 1;
  margin-bottom: 24px;
}

.service-card:hover .service-number {
  color: var(--color-gold);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  color: var(--color-gold);
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--color-navy);
  line-height: 1.3;
}

.service-card .service-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-features {
  margin-bottom: 32px;
}

.service-features li {
  font-size: 14px;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '\2713';
  color: var(--color-gold);
  font-weight: 700;
}

.service-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--color-gold-dark);
  gap: 14px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Why RIVOX ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  text-align: left;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.trust-item:hover {
  background: rgba(191, 160, 106, 0.08);
  border-color: rgba(191, 160, 106, 0.3);
  transform: translateY(-4px);
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-gold);
}

.trust-item h3 {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.trust-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== How It Works ===== */
.steps-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold) 100%);
  opacity: 0.3;
}

.step-item {
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: var(--color-white);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gold-dark);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.step-item:hover .step-number {
  background: var(--color-gold);
  color: var(--color-white);
  transform: scale(1.1);
}

.step-item h3 {
  font-size: 18px;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 20px;
  }
  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Founder Story ===== */
.founder {
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.founder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 0.55;
  z-index: 1;
}

.founder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(191, 160, 106, 0.06) 0%, transparent 50%);
  z-index: 1;
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.founder-photo {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 90vw;
  max-height: 90vw;
  margin: 0 auto;
}

.founder-photo-frame {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-navy-light), var(--color-navy));
  border: 3px solid rgba(191, 160, 106, 0.3);
  box-shadow: 0 0 0 1px rgba(191, 160, 106, 0.1), 0 25px 60px rgba(0, 0, 0, 0.35);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-photo-frame:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(191, 160, 106, 0.2), 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.founder-photo-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid rgba(191, 160, 106, 0.15);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.4s ease;
}

.founder-photo-frame:hover::before {
  border-color: rgba(191, 160, 106, 0.35);
  transform: scale(1.02);
}

.founder-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-photo-label {
  margin-top: 24px;
  text-align: center;
  padding: 14px 24px;
  background: rgba(11, 27, 43, 0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(191, 160, 106, 0.2);
  backdrop-filter: blur(10px);
}

.founder-photo-label .name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.founder-photo-label .role {
  font-size: 13px;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

.founder-text .section-label {
  color: var(--color-gold);
}

.founder-text h2 {
  font-size: 44px;
  margin-bottom: 32px;
  color: var(--color-white);
  line-height: 1.25;
}

.founder-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.9;
}

.founder-quote {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  color: var(--color-gold-light);
  border-left: 3px solid var(--color-gold);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.5;
}

.founder-sign {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-white);
  margin-top: 32px;
}

.founder-sign-role {
  font-size: 13px;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .founder-photo {
    width: 240px;
    height: 240px;
  }

  .founder-photo-label {
    margin-top: 18px;
    padding: 12px 20px;
  }
}

/* ===== Insights / Blog ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.insight-category {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.insight-category:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.insight-cat-header {
  padding: 32px 32px 20px;
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
}

.insight-cat-header h3 {
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.insight-cat-header .cat-count {
  font-size: 12px;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

.insight-cat-list {
  padding: 24px 32px;
}

.insight-cat-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.insight-cat-list li:last-child {
  border-bottom: none;
}

.insight-cat-list a {
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.insight-cat-list a:hover {
  color: var(--color-gold-dark);
  padding-left: 8px;
}

.insight-cat-list a::after {
  content: '\2192';
  color: var(--color-gold);
  font-size: 18px;
  transition: var(--transition);
}

.insight-cat-list a:hover::after {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Editable Resources ===== */
.edit-notice {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(191, 160, 106, 0.2);
}

.edit-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.edit-notice strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.edit-notice span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 1px;
}

.article-card {
  cursor: pointer;
}

/* ===== Article Modal ===== */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.article-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 43, 0.85);
  backdrop-filter: blur(8px);
}

.article-modal-content {
  position: relative;
  background: var(--color-white);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.article-modal.is-open .article-modal-content {
  transform: translateY(0);
}

.article-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.article-modal-close:hover {
  color: var(--color-navy);
}

.article-modal-header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid var(--color-cream-dark);
}

.article-modal-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.article-modal-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 16px;
  outline: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.article-modal-title:hover,
.article-modal-title:focus {
  border-bottom-color: rgba(191, 160, 106, 0.3);
}

.article-modal-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.article-modal-body {
  padding: 40px 48px;
}

.article-modal-excerpt {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-cream-dark);
  outline: none;
}

.article-modal-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  outline: none;
}

.article-modal-text h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-navy);
  margin: 32px 0 16px;
}

.article-modal-text p {
  margin-bottom: 18px;
}

.article-modal-text ul {
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-modal-text li {
  margin-bottom: 10px;
}

.article-modal-text [contenteditable="true"]:hover,
.article-modal-text [contenteditable="true"]:focus,
.article-modal-excerpt:hover,
.article-modal-excerpt:focus,
.article-modal-title:hover,
.article-modal-title:focus {
  background: rgba(191, 160, 106, 0.06);
}

.article-modal-footer {
  display: flex;
  gap: 16px;
  padding: 24px 48px 48px;
}

@media (max-width: 700px) {
  .article-modal-header,
  .article-modal-body,
  .article-modal-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .article-modal-title {
    font-size: 28px;
  }

  .article-modal-excerpt {
    font-size: 19px;
  }
}

/* ===== Client Journey / Case Studies ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
}

.case-service svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.case-before,
.case-after {
  padding: 28px;
  flex: 1;
}

.case-before {
  background: var(--color-cream-dark);
  border-bottom: 1px solid var(--color-border);
}

.case-after {
  background: var(--color-white);
}

.case-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-before .case-label {
  color: var(--color-text-muted);
}

.case-after .case-label {
  color: var(--color-gold-dark);
}

.case-before p,
.case-after p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.case-before p {
  color: var(--color-text-light);
  font-style: italic;
}

.case-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--color-gold);
  color: var(--color-white);
}

.case-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }
}

/* ===== Contact Section ===== */
.contact {
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 0.52;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-info h2 {
  font-size: 44px;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.25;
}

.contact-info p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-point {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-point svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-cta-card {
  text-align: center;
}

.contact-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.contact-cta-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.contact-cta-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.08);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23BFA06A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.form-group select option {
  background: var(--color-navy);
  color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form {
    padding: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 0.48;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.footer-brand .footer-logo span {
  color: var(--color-gold);
}

.footer-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-brand-line {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--color-gold-light);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 400px;
}

.footer-bottom .footer-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ===== Sub Page Hero ===== */
.page-hero {
  padding: 180px 0 80px;
  background: var(--color-navy-deep);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 0.58;
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 27, 43, 0.90) 0%, rgba(11, 27, 43, 0.65) 100%);
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 56px;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.page-hero p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

/* ===== Process Timeline ===== */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  min-width: 60px;
}

.process-step h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.process-step p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Module Grid (concierge) ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.module-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.module-card .module-phase {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.module-card h3 {
  font-size: 22px;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.module-card ul li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-cream-dark);
  display: flex;
  gap: 10px;
}

.module-card ul li::before {
  content: '\2022';
  color: var(--color-gold);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--color-navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/deep-blue-texture.svg') center/cover no-repeat;
  opacity: 0.55;
  z-index: 1;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100%;
  background: radial-gradient(circle, rgba(191, 160, 106, 0.06) 0%, transparent 60%);
  z-index: 1;
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
}

.cta-banner h2 {
  font-size: 44px;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.25;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px;
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--color-gold);
}

.value-card h3 {
  font-size: 22px;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Article List ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.article-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  position: relative;
  overflow: hidden;
}

.article-card-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  padding: 6px 12px;
  background: rgba(11, 27, 43, 0.6);
  border-radius: 100px;
}

.article-card-body {
  padding: 32px;
}

.article-card-body .article-date {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.article-card-body h3 {
  font-size: 20px;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-read-more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.article-card:hover .article-read-more {
  gap: 14px;
}

@media (max-width: 900px) {
  .article-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Animation Classes ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive Section Padding ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .container,
  .container-narrow {
    padding: 0 24px;
  }

  .navbar-inner {
    padding: 0 24px;
  }

  .hero-inner {
    padding: 0 24px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .founder-text h2,
  .contact-info h2,
  .cta-banner h2 {
    font-size: 30px;
  }
}

/* ===== In-Page Edit Mode ===== */
#rivox-edit-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-body);
}

#rivox-edit-toggle {
  padding: 12px 20px;
  background: var(--color-navy);
  color: var(--color-white);
  border: 1px solid rgba(191, 160, 106, 0.4);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#rivox-edit-toggle:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

#rivox-edit-tools {
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
}

#rivox-edit-tools span {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
}

#rivox-edit-tools small {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
  text-align: center;
}

#rivox-edit-tools button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

#rivox-edit-export {
  background: var(--color-gold);
  color: var(--color-navy);
}

#rivox-edit-export:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
}

#rivox-edit-save {
  background: var(--color-navy);
  color: var(--color-white);
}

#rivox-edit-save:hover {
  background: var(--color-navy-light);
}

body.rivox-editing [contenteditable="true"] {
  outline: 2px dashed var(--color-gold);
  outline-offset: 4px;
  cursor: text;
  background: rgba(191, 160, 106, 0.04);
  border-radius: 3px;
}

body.rivox-editing [contenteditable="true"]:focus,
body.rivox-editing [contenteditable="true"]:hover {
  outline: 2px solid var(--color-gold);
  background: rgba(191, 160, 106, 0.08);
}

body.rivox-editing .btn,
body.rivox-editing a {
  cursor: text !important;
}

@media (max-width: 640px) {
  #rivox-edit-panel {
    right: 16px;
    bottom: 16px;
  }
  #rivox-edit-tools {
    flex-direction: column;
    align-items: stretch;
  }
  #rivox-edit-tools span {
    white-space: normal;
    text-align: center;
  }
}
