/* ============================================================
   Recotex Shared Styles
   Brand: #f08300 orange | #373737 dark | #ffffff white
   ============================================================ */

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

:root {
  --orange: #f08300;
  --orange-dark: #d47300;
  --orange-light: #fff3e0;
  --dark: #373737;
  --dark-2: #4a4a4a;
  --gray: #abb8c3;
  --gray-light: #f5f7f9;
  --gray-mid: #e2e8ed;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(240,131,0,0.18);
  --transition: 0.22s ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--gray-mid);
}

.btn-ghost:hover {
  border-color: var(--gray);
  color: var(--text);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Form elements ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--dark-2);
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,131,0,0.12);
}

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

/* ── Range slider ────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--gray-mid);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(240,131,0,0.35);
  cursor: pointer;
  transition: transform var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  box-shadow: 0 2px 8px rgba(240,131,0,0.35);
  cursor: pointer;
}

/* ── Custom scrollbar (desktop) ──────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

/* ── Scroll indicator arrow ──────────────────────────────── */
.scroll-indicator {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border: none;
  font-family: inherit;
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}
