/* ============================================================
   CFT Website — Refreshed styles
   Base brand: dark stone + gold (unchanged)
   3D rack animation accent: navy + bright orange
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --brand-dark: #0C0A09;
  --brand-dark-secondary: #1C1917;
  --brand-dark-tertiary: #292524;
  --brand-gold: #D4A017;
  --brand-gold-light: #E8C547;
  --brand-gold-dark: #B7860B;
  --brand-border: #44403C;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --stone-500: #78716C;
  --stone-600: #57534E;
  --white: #FAFAF9;

  /* 3D rack scene palette (navy + bright orange, per ask) */
  --scene-navy-deep: #0B1220;
  --scene-navy: #0F1B2E;
  --scene-navy-mid: #1E3A8A;
  --scene-blue: #3B82F6;
  --scene-blue-light: #60A5FA;
  --scene-orange: #F97316;
  --scene-orange-light: #FB923C;
  --scene-orange-deep: #C2410C;

  --font-heading: 'Lexend', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --header-h: 76px;

  /* Surfaces */
  --bg-page: var(--brand-dark);
  --bg-surface: var(--brand-dark-secondary);
  --bg-surface-2: var(--brand-dark-tertiary);
  --fg-1: var(--white);
  --fg-2: var(--stone-300);
  --fg-3: var(--stone-400);
  --fg-4: var(--stone-500);
  --fg-5: var(--stone-600);
  --border-soft: rgba(68, 64, 60, 0.5);
  --border-softer: rgba(68, 64, 60, 0.3);
  --border-gold: rgba(212, 160, 23, 0.25);
}

/* Light theme overrides */
[data-theme='light'] {
  --bg-page: #F6F3EC;
  --bg-surface: #FFFFFF;
  --bg-surface-2: #EDE8DD;
  --fg-1: #17130E;
  --fg-2: #2B241A;
  --fg-3: #4A4036;
  --fg-4: #6E6458;
  --fg-5: #9C9386;
  --border-soft: rgba(104, 90, 74, 0.18);
  --border-softer: rgba(104, 90, 74, 0.12);
  --border-gold: rgba(183, 134, 11, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background 0.5s ease, color 0.5s ease;
}

::selection { background: rgba(212, 160, 23, 0.3); color: var(--fg-1); }

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

/* ===== Container ===== */
.cft-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .cft-container { padding: 0 20px; }
}

/* ===== Eyebrow ===== */
.cft-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.cft-eyebrow-rule {
  width: 32px;
  height: 1px;
  background: rgba(212, 160, 23, 0.5);
}

/* ===== Section heading ===== */
.cft-section-heading { margin-bottom: 64px; }
.cft-section-heading.is-center { text-align: center; }
.cft-section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 14px;
}
.cft-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-1);
}
.cft-section-desc {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 18px;
  color: var(--fg-3);
  line-height: 1.55;
}
.cft-section-heading:not(.is-center) .cft-section-desc { margin-left: 0; margin-right: 0; }
.cft-gold-gradient {
  background: linear-gradient(135deg, #E8C547 0%, #D4A017 50%, #B7860B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cft-scene-gradient {
  background: linear-gradient(135deg, #FB923C 0%, #F97316 55%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.cft-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 13px;
  white-space: nowrap;
}
.cft-btn-lg { padding: 16px 32px; }
.cft-btn-md { padding: 12px 24px; font-size: 12px; }
.cft-btn-sm { padding: 10px 20px; font-size: 12px; gap: 8px; }

.cft-btn-gold { background: var(--brand-gold); color: #0C0A09; }
.cft-btn-gold:hover {
  background: var(--brand-gold-dark);
  box-shadow: 0 20px 50px -15px rgba(212, 160, 23, 0.5);
}
.cft-btn-gold:hover .cft-btn-arrow { transform: translateX(4px); }
.cft-btn-arrow { transition: transform 0.3s; }

.cft-btn-glass {
  background: rgba(12, 10, 9, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 160, 23, 0.12);
  color: var(--fg-1);
  font-weight: 600;
}
[data-theme='light'] .cft-btn-glass {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(183, 134, 11, 0.25);
}
.cft-btn-glass:hover { color: var(--brand-gold); background: rgba(12, 10, 9, 0.8); }
[data-theme='light'] .cft-btn-glass:hover { background: rgba(255, 255, 255, 0.85); }

/* Scene button (orange) — used around the 3D hero */
.cft-btn-scene {
  background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  color: #17130E;
  box-shadow: 0 10px 28px -14px rgba(249, 115, 22, 0.6);
}
.cft-btn-scene:hover {
  background: linear-gradient(135deg, #F97316 0%, #C2410C 100%);
  box-shadow: 0 20px 50px -15px rgba(249, 115, 22, 0.55);
  color: #fff;
}

/* ===== Badges ===== */
.cft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.cft-badge-glass {
  background: rgba(12, 10, 9, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 160, 23, 0.12);
  color: var(--brand-gold);
}
.cft-badge-scene {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #FB923C;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 5px 12px;
}
.cft-badge-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60A5FA;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 5px 12px;
}

/* ===== Icon wells ===== */
.cft-icon-well {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.15);
  color: var(--brand-gold);
  transition: all 0.3s;
}
.cft-icon-well-sm { width: 32px; height: 32px; border-radius: 8px; }
.cft-icon-well-md { width: 48px; height: 48px; }
.cft-icon-well-lg { width: 56px; height: 56px; border-radius: 14px; }

/* ===== Glass surfaces ===== */
.cft-glass {
  background: rgba(12, 10, 9, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 160, 23, 0.1);
}
[data-theme='light'] .cft-glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(183, 134, 11, 0.18);
}

/* ===== Background patterns ===== */
.cft-bg-grid-gold {
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cft-bg-dots-gold {
  background-image: radial-gradient(circle at 1px 1px, rgba(212, 160, 23, 0.09) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ===== Header ===== */
.cft-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  transition: all 0.5s;
}
.cft-header.is-scrolled {
  background: rgba(12, 10, 9, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
[data-theme='light'] .cft-header.is-scrolled {
  background: rgba(246, 243, 236, 0.85);
  border-bottom: 1px solid rgba(183, 134, 11, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.cft-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.cft-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.cft-logo img { height: 40px; width: auto; object-fit: contain; }
.cft-logo-text-primary {
  display: block; font-family: var(--font-heading);
  font-size: 15px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--fg-1); line-height: 1;
}
.cft-logo-text-secondary {
  display: block; font-family: var(--font-heading);
  font-size: 9px; font-weight: 600; letter-spacing: 0.24em;
  color: var(--brand-gold); margin-top: 3px;
}
.cft-nav { display: flex; align-items: center; gap: 4px; }
.cft-nav-link {
  padding: 10px 16px; color: var(--fg-2); text-decoration: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  transition: color 0.3s; cursor: pointer; background: none; border: 0;
}
.cft-nav-link:hover { color: var(--brand-gold); }
.cft-nav-link.is-active { color: var(--brand-gold); }

.cft-theme-toggle {
  width: 38px; height: 38px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(212, 160, 23, 0.15);
  color: var(--brand-gold); cursor: pointer; transition: all 0.3s; margin-left: 10px;
}
.cft-theme-toggle:hover { background: rgba(212, 160, 23, 0.1); transform: rotate(20deg); }

/* ===== Section ===== */
.cft-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cft-section.is-secondary { background: var(--bg-surface); }
.cft-section.is-compact { padding: 80px 0; }
.cft-section-glow {
  position: absolute;
  width: 800px; height: 600px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(212, 160, 23, 0.04);
  border-radius: 50%; filter: blur(200px);
  pointer-events: none;
}

/* ===== Footer reused from kit ===== */
.cft-footer { background: var(--brand-dark); position: relative; overflow: hidden; color: var(--stone-300); }
[data-theme='light'] .cft-footer { background: #1C1917; color: #D6D3D1; }
.cft-footer-top-rule { height: 1px; background: linear-gradient(to right, transparent, rgba(212, 160, 23, 0.3), transparent); }
.cft-footer-inner { padding: 72px 0; position: relative; z-index: 2; }
.cft-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px) { .cft-footer-grid { grid-template-columns: 1fr 1fr; } }
.cft-footer h3 {
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #FAFAF9; margin: 0 0 20px;
}
.cft-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cft-footer-links a { color: #A8A29E; font-size: 14px; text-decoration: none; transition: color 0.3s; cursor: pointer; }
.cft-footer-links a:hover { color: var(--brand-gold); }
.cft-footer-tagline { font-size: 14px; color: #A8A29E; line-height: 1.6; margin: 20px 0; max-width: 320px; }
.cft-footer-mini-stats { display: flex; gap: 24px; margin-top: 20px; }
.cft-footer-mini-stat-num { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--brand-gold); line-height: 1; }
.cft-footer-mini-stat-label { display: block; margin-top: 4px; font-size: 10px; color: #78716C; letter-spacing: 0.2em; text-transform: uppercase; }
.cft-footer-contact-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: #A8A29E; text-decoration: none;
}
.cft-footer-contact-row + .cft-footer-contact-row { margin-top: 14px; }
.cft-footer-contact-row:hover { color: var(--brand-gold); }
.cft-footer-contact-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(212, 160, 23, 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--brand-gold);
}
.cft-footer-bottom {
  border-top: 1px solid rgba(68, 64, 60, 0.3);
  padding: 20px 0;
  font-size: 12px;
  color: #78716C;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 8px;
}

/* ===== Floating CTA cluster ===== */
.cft-floating-cta {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 80;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.cft-floating-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cft-fab {
  width: 52px; height: 52px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: all 0.3s;
  position: relative;
  color: #fff;
}
.cft-fab:hover { transform: scale(1.08); }
.cft-fab-wa { background: #25D366; }
.cft-fab-call { background: var(--brand-gold); color: #0C0A09; }
.cft-fab-chat { background: #1C1917; color: var(--brand-gold); border: 1px solid rgba(212, 160, 23, 0.3); }
.cft-fab-tip {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  background: #0C0A09; color: var(--fg-1); padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
  border: 1px solid rgba(212, 160, 23, 0.2);
}
.cft-fab:hover .cft-fab-tip { opacity: 1; }

/* ===== App frame scroll container ===== */
.cft-app-scroll {
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== Page entry ===== */
.cft-page-enter { animation: pageIn 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Utility ===== */
.cft-mt-4 { margin-top: 16px; }
.cft-mt-6 { margin-top: 24px; }
.cft-mt-8 { margin-top: 32px; }
.cft-mt-10 { margin-top: 40px; }
.cft-mt-12 { margin-top: 48px; }
.cft-mt-16 { margin-top: 64px; }

/* ===== Scrollbar ===== */
.cft-app-scroll::-webkit-scrollbar { width: 10px; }
.cft-app-scroll::-webkit-scrollbar-track { background: var(--bg-page); }
.cft-app-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212,160,23,0.4), rgba(249,115,22,0.3));
  border-radius: 9999px; border: 2px solid var(--bg-page);
}
