/* ==========================================================================
   Roux Website — Official Brand Design System & Stylesheet
   Grounded in Roux Design System (Roux Warm Ramp, Lora & Figtree Fonts)
   Includes Wix / Squarespace Style Visual CMS Engine Styles
   ========================================================================== */

:root {
  /* Roux Stage Color System */
  --roux-white: #FBF6EF;
  --roux-blonde: #E8C79A;
  --roux-peanut: #C68B4F;
  --roux-brown: #8B4A2B;   /* Primary Brand Brown */
  --roux-dark: #5A2E1B;
  --roux-black: #241712;

  /* Warm Neutrals */
  --warm-50: #FBF6EF;
  --warm-100: #F3EAE0;
  --warm-200: #E4D5C8;
  --warm-300: #CDB8A6;
  --warm-400: #A98F7E;
  --warm-500: #836A5C;
  --warm-600: #63493D;
  --warm-700: #4A342A;
  --warm-800: #33221A;
  --warm-900: #241712;

  /* Brand Ramp */
  --brand-primary: var(--roux-brown);
  --brand-hover: #9E5633;
  --brand-glow: rgba(139, 74, 43, 0.4);

  /* Accents */
  --accent-cherry: #C5405B;
  --accent-gold: #D9A125;
  --accent-herb: #6B8F3E;

  /* Dark Theme Surfaces (App Default) */
  --bg-page: #1A100C;
  --bg-surface: #241712;
  --bg-surface-sunken: #170E0A;
  --bg-surface-raised: #2F1E18;
  --bg-card: rgba(36, 23, 18, 0.85);
  --bg-input: #1C110D;
  
  --border-hairline: #3D2C24;
  --border-strong: #4E392E;
  --border-hover: var(--roux-peanut);

  --text-primary: #F6ECE3;
  --text-secondary: #C9B7AB;
  --text-tertiary: #A99486;
  --text-on-brand: var(--roux-white);
  --text-link: var(--roux-blonde);

  /* Typography */
  --font-display: 'Lora', ui-serif, Georgia, serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadow & Glow */
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.6);
  --glow-roux: 0 0 35px rgba(139, 74, 43, 0.3);
}

/* Light Theme Support */
[data-theme="light"] {
  --bg-page: var(--warm-50);
  --bg-surface: #FFFFFF;
  --bg-surface-sunken: var(--warm-100);
  --bg-surface-raised: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-input: #FFFFFF;
  
  --border-hairline: var(--warm-200);
  --border-strong: var(--warm-300);
  --border-hover: var(--brand-primary);

  --text-primary: var(--warm-900);
  --text-secondary: var(--warm-600);
  --text-tertiary: var(--warm-400);
  --text-on-brand: var(--roux-white);
  --text-link: var(--brand-primary);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26, 16, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--roux-brown), var(--roux-peanut));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--roux-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--roux-peanut);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--roux-peanut);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--roux-brown), var(--brand-hover));
  color: var(--roux-white);
  box-shadow: 0 4px 20px var(--brand-glow);
  border: 1px solid rgba(232, 199, 154, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 74, 43, 0.5);
  background: linear-gradient(135deg, var(--brand-hover), var(--roux-peanut));
}

.btn-secondary {
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--roux-blonde);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), #B5821A);
  color: #170E0A;
  box-shadow: 0 4px 18px rgba(217, 161, 37, 0.3);
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(217, 161, 37, 0.45);
}

/* Main Content */
#main-content {
  flex: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 74, 43, 0.25) 0%, rgba(198, 139, 79, 0.12) 40%, rgba(26, 16, 12, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(198, 139, 79, 0.12);
  border: 1px solid rgba(198, 139, 79, 0.3);
  border-radius: var(--radius-full);
  color: var(--roux-blonde);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.6rem;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

.text-gradient {
  background: linear-gradient(135deg, var(--roux-white), var(--roux-blonde) 50%, var(--roux-peanut) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--roux-blonde);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--glow-roux);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-sunken);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Feature Grid */
.features-section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--roux-peanut);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), 0 0 20px rgba(139, 74, 43, 0.2);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(139, 74, 43, 0.2);
  border: 1px solid rgba(198, 139, 79, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--roux-blonde);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.feature-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Feature Spotlight */
.spotlight-section {
  padding: 5.5rem 0;
  background: var(--bg-surface-sunken);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.spotlight-row.reverse {
  direction: rtl;
}

.spotlight-row.reverse > * {
  direction: ltr;
}

.spotlight-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  background: var(--bg-surface);
}

.spotlight-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Downloads & Forms */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feedback-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--roux-blonde);
  box-shadow: 0 0 0 3px rgba(198, 139, 79, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #120A07;
  border-top: 1px solid var(--border-hairline);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Wix / Squarespace Style Visual CMS Engine Styles
   ========================================================================== */

#visual-cms-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.cms-floating-bar {
  background: rgba(26, 16, 12, 0.92);
  border: 1.5px solid var(--roux-peanut);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(198, 139, 79, 0.3);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cms-bar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--roux-white);
  font-size: 0.9rem;
}

.cms-bar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cms-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--roux-blonde);
  background: rgba(198, 139, 79, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(198, 139, 79, 0.3);
}

.cms-editable-text {
  outline: 2px dashed rgba(198, 139, 79, 0.6) !important;
  outline-offset: 4px;
  cursor: text;
  transition: outline-color 0.2s ease;
}

.cms-editable-text:hover {
  outline-color: var(--roux-blonde) !important;
  background: rgba(198, 139, 79, 0.08);
}

.cms-editable-text:focus {
  outline: 2px solid var(--roux-peanut) !important;
  background: rgba(198, 139, 79, 0.12);
}

.cms-image-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background: rgba(26, 16, 12, 0.9);
  border: 1px solid var(--roux-peanut);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  color: var(--roux-white);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.cms-image-overlay:hover {
  transform: scale(1.05);
  background: var(--roux-brown);
}
