/* Palabra Website — Design System */
/* Blueberry Bee (Pty) Ltd — Mining / Executive Corporate */
:root {
  --bg-primary: #0a0c0f;
  --bg-secondary: #111419;
  --bg-card: #181b22;
  --bg-elevated: #1e222d;
  --border: #262a35;
  --border-light: #323744;
  --text-primary: #e8ecf1;
  --text-secondary: #8b93a5;
  --text-muted: #555b6b;
  --accent-gold: #c8944a;
  --accent-gold-light: #d4a85e;
  --accent-copper: #b87333;
  --accent-copper-light: #d4894a;
  --accent-bronze: #8b6914;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --gradient-hero: linear-gradient(135deg, #0a0c0f 0%, #181b22 40%, #1e222d 100%);
  --gradient-gold: linear-gradient(135deg, #c8944a, #b87333);
  --gradient-card: linear-gradient(135deg, #181b22 0%, #1e222d 100%);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,12,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 24px;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { color: var(--text-primary); font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 12px; font-weight: 500; padding: 6px 12px;
  border-radius: var(--radius-sm); transition: all var(--transition);
  text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-gold); background: rgba(200,148,74,0.1); }

/* ── Hero ── */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,148,74,0.08) 0%, transparent 70%);
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light); font-size: 12px;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 52px; font-weight: 700;
  line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, #e8ecf1 0%, #c8944a 50%, #d4a85e 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-secondary); font-size: 18px; line-height: 1.7;
  max-width: 700px; margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: all var(--transition); border: none;
}
.btn-gold { background: var(--gradient-gold); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,148,74,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-sm { padding: 8px 20px; font-size: 12px; }

/* ── Sections ── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-gold); margin-bottom: 12px;
}
.section h2 {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  margin-bottom: 16px; color: var(--text-primary);
}
.section h3 {
  font-size: 22px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary);
}
.section p, .section .desc {
  color: var(--text-secondary); font-size: 15px; line-height: 1.7;
  max-width: 700px;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; margin-top: 40px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--accent-gold); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card-icon { font-size: 32px; margin-bottom: 14px; }
.card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── Feature rows ── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  margin: 60px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-image {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 60px;
}
.feature-content h3 { margin-bottom: 16px; }

/* ── Service List ── */
.service-list { margin-top: 40px; }
.service-item {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:first-child { padding-top: 0; }
.service-num {
  font-family: var(--font-display); font-size: 28px; color: var(--accent-gold);
  min-width: 50px; font-weight: 700;
}
.service-item h4 { margin-bottom: 6px; }
.service-item p { font-size: 14px; color: var(--text-secondary); }

/* ── Contact Form ── */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px; max-width: 600px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent-gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Stats ── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-top: 40px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; text-align: center;
}
.stat-value {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px; text-align: center; margin: 40px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,148,74,0.06) 0%, transparent 70%);
}
.cta-banner h3 { position: relative; z-index: 1; }
.cta-banner p { position: relative; z-index: 1; margin-bottom: 24px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  margin-bottom: 16px; color: var(--accent-gold);
  text-transform: uppercase; letter-spacing: 1px;
}
.footer-col a, .footer-col p {
  display: block; color: var(--text-secondary); font-size: 13px;
  text-decoration: none; margin-bottom: 8px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-gold-light); }
.footer-powered {
  margin-top: 16px; font-size: 11px; color: var(--text-muted);
}
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; font-size: 12px; color: var(--text-muted);
}

/* ── Page Header ── */
.page-header {
  padding: 140px 24px 60px; text-align: center;
  background: var(--gradient-hero);
}
.page-header h1 {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.page-header p { color: var(--text-secondary); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ── AI Chat Widget ── */
.ai-chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.ai-chat-toggle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-gold); border: none; color: #fff;
  font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(200,148,74,0.4);
  transition: transform var(--transition);
}
.ai-chat-toggle:hover { transform: scale(1.05); }
.ai-chat-panel {
  position: absolute; bottom: 64px; right: 0; width: 360px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.ai-chat-panel.open { display: flex; }
.ai-chat-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600;
}
.ai-chat-header button { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.ai-chat-body { flex: 1; overflow-y: auto; padding: 14px; max-height: 300px; font-size: 13px; }
.ai-chat-body .msg { margin-bottom: 10px; padding: 10px 14px; border-radius: var(--radius-sm); line-height: 1.5; }
.ai-chat-body .msg.user { color: var(--accent-gold-light); text-align: right; }
.ai-chat-body .msg.bot { background: var(--bg-elevated); color: var(--text-primary); }
.ai-chat-body .msg.thinking { color: var(--text-muted); font-style: italic; background: none; }
.ai-chat-input { display: flex; padding: 10px; border-top: 1px solid var(--border); gap: 8px; }
.ai-chat-input input {
  flex: 1; padding: 8px 12px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 13px;
}
.ai-chat-input input:focus { outline: none; border-color: var(--accent-gold); }
.ai-chat-input button {
  padding: 8px 16px; background: var(--gradient-gold); border: none;
  border-radius: var(--radius-sm); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .section h2 { font-size: 26px; }
  .page-header h1 { font-size: 28px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-image { height: 200px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 16px; }
  .ai-chat-panel { width: 300px; }
}
